diff --git a/commafeed-client/src/pages/app/ApiDocumentationPage.tsx b/commafeed-client/src/pages/app/ApiDocumentationPage.tsx index 5dfc7845..cb8291b5 100644 --- a/commafeed-client/src/pages/app/ApiDocumentationPage.tsx +++ b/commafeed-client/src/pages/app/ApiDocumentationPage.tsx @@ -5,7 +5,7 @@ function ApiDocumentationPage() { return ( // force white background because documentation does not support dark theme - + ) } diff --git a/commafeed-client/vite.config.ts b/commafeed-client/vite.config.ts index c59b5623..cded2a57 100644 --- a/commafeed-client/vite.config.ts +++ b/commafeed-client/vite.config.ts @@ -54,7 +54,7 @@ export default defineConfig({ "/rest": "http://localhost:8083", "/next": "http://localhost:8083", "/ws": "ws://localhost:8083", - "/openapi": "http://localhost:8083", + "/openapi.json": "http://localhost:8083", "/custom_css.css": "http://localhost:8083", "/custom_js.js": "http://localhost:8083", }, diff --git a/commafeed-server/pom.xml b/commafeed-server/pom.xml index cf02f535..851183e7 100644 --- a/commafeed-server/pom.xml +++ b/commafeed-server/pom.xml @@ -129,7 +129,7 @@ 2.2.19 - ${project.build.directory}/classes/assets/openapi + ${project.build.directory}/classes/assets JSONANDYAML com.commafeed.frontend.resource diff --git a/commafeed-server/src/main/java/com/commafeed/frontend/resource/OpenAPI.java b/commafeed-server/src/main/java/com/commafeed/frontend/resource/OpenAPI.java index 0ed9a78f..ad0ed043 100644 --- a/commafeed-server/src/main/java/com/commafeed/frontend/resource/OpenAPI.java +++ b/commafeed-server/src/main/java/com/commafeed/frontend/resource/OpenAPI.java @@ -9,7 +9,7 @@ import io.swagger.v3.oas.annotations.servers.Server; @OpenAPIDefinition( info = @Info(title = "CommaFeed API"), - servers = { @Server(description = "CommaFeed API", url = "../rest") }, + servers = { @Server(description = "CommaFeed API", url = "rest") }, security = { @SecurityRequirement(name = "basicAuth") }) @SecurityScheme(name = "basicAuth", type = SecuritySchemeType.HTTP, scheme = "basic") public class OpenAPI {