generate a nicer url in documentation (/rest instead of /openapi/../rest)

This commit is contained in:
Athou
2023-12-29 11:21:28 +01:00
parent e0c05c8e5d
commit a491b95a02
4 changed files with 4 additions and 4 deletions

View File

@@ -129,7 +129,7 @@
<version>2.2.19</version>
<?m2e ignore?>
<configuration>
<outputPath>${project.build.directory}/classes/assets/openapi</outputPath>
<outputPath>${project.build.directory}/classes/assets</outputPath>
<outputFormat>JSONANDYAML</outputFormat>
<resourcePackages>
<package>com.commafeed.frontend.resource</package>

View File

@@ -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 {