RED-4515 - Swagger multitenancy fix
This commit is contained in:
parent
4c9ea27207
commit
208c1397c8
@ -35,8 +35,7 @@ public class SwaggerCustomDocsController {
|
||||
@Operation(hidden = true)
|
||||
@GetMapping(ExternalApi.BASE_PATH + "/docs/tenant")
|
||||
public String getDocs(HttpServletRequest request, @RequestParam(value = "tenantId", required = false, defaultValue = "redaction") String tenantId) {
|
||||
|
||||
var response = openApiWebMvcResource.openapiJson(request, apiDocsUrl, Locale.getDefault());
|
||||
var response = openApiWebMvcResource.openapiJson(request, ExternalApi.BASE_PATH + "/docs/tenant", Locale.getDefault());
|
||||
return response.replace("<tenantId>", tenantId);
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user