Bird
0
0

In a Spring Boot project using springdoc-openapi-starter-webmvc-ui, which URL path typically displays the Swagger UI interface?

medium📝 component behavior Q4 of 15
Spring Boot - API Documentation
In a Spring Boot project using springdoc-openapi-starter-webmvc-ui, which URL path typically displays the Swagger UI interface?
A/swagger-ui.html
B/swagger-ui/index.html
C/api-docs/swagger-ui
D/openapi/swagger-ui.html
Step-by-Step Solution
Solution:
  1. Step 1: Recall springdoc-openapi default Swagger UI path

    The starter uses /swagger-ui/index.html as the default UI endpoint.
  2. Step 2: Compare options

    /swagger-ui.html is legacy from springfox; others are incorrect paths.
  3. Final Answer:

    /swagger-ui/index.html -> Option B
  4. Quick Check:

    springdoc-openapi UI path ends with /index.html [OK]
Quick Trick: springdoc-openapi UI URL ends with /swagger-ui/index.html [OK]
Common Mistakes:
  • Using /swagger-ui.html which is for springfox
  • Assuming /api-docs/swagger-ui is default
  • Confusing openapi JSON URL with UI URL

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes