Skip to content

Commit

Permalink
ensure consistent OpenAPI controller/endpoint ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
goekay committed Jan 5, 2025
1 parent 716b379 commit 415e1d5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public class ApiDocsConfiguration {
System.setProperty("springdoc.swagger-ui.path", "/manager/swagger-ui/index.html");
// We only want REST APIs here (de.rwth.idsg.steve.web.api package)
System.setProperty("springdoc.paths-to-match", "/api/**");
// Sort controllers alphabetically by their path
System.setProperty("springdoc.swagger-ui.tagsSorter", "alpha");
// Sort endpoints (within a controller) alphabetically by their path
System.setProperty("springdoc.swagger-ui.operationsSorter", "alpha");
}

@Bean
Expand Down

0 comments on commit 415e1d5

Please sign in to comment.