Skip to content

fix: serve the OGC landing page at the API root - #4

Merged
argaar merged 1 commit into
mainfrom
fix/swagger-ui-path
Oct 8, 2026
Merged

argaar merged 1 commit into
mainfrom
fix/swagger-ui-path

Conversation

@argaar

@argaar argaar commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

GET / (served at /ogcapi/ in the EOEPCA deployment) must return the OGC API landing page. The HomeController generated by openapi-generator redirects / to swagger-ui.html, so browser-style requests (no JSON Accept header) were redirected and ended in a 404: Swagger UI is served under /api/.

  • .openapi-generator-ignore: stop generating HomeController.java.
  • ApiApiDelegateImplIT, test-application.properties: the Swagger UI tests now set the servlet context path, and use the same springdoc.swagger-ui.path as the deployment.

Test plan

  • ./gradlew build in a clean eclipse-temurin:17-jdk container: 279 tests, 0 failures; no HomeController.java under build/generated
  • Workflow green on this pull request
  • After merge: new image deployed on a test cluster, the deployment validation.sh check on http://<host>/ogcapi/ returns 200, and e2e.sh passes

Stop generating HomeController: its redirect from / to swagger-ui.html shadowed the landing page and ended in a 404, because Swagger UI is served under /api/. The Swagger UI tests now run with the servlet context path.
@argaar
argaar requested a review from a team as a code owner October 8, 2026 14:49
@argaar
argaar merged commit adc49b0 into main Oct 8, 2026
2 checks passed
@argaar
argaar deleted the fix/swagger-ui-path branch October 8, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant