🌟 Day 13: Documenting Your API with Spring REST Docs and Restdocs-API-Spec 🌟
Hello Youtube! 👋
It’s Day 13 of the Spring Boot Advent of Code series, and today we explored another fantastic way to document APIs: Spring REST Docs combined with Restdocs-API-Spec from ePages! 📚✨
Here’s what we covered in this episode:
✅ Setting up Spring REST Docs for generating documentation based on tests.
✅ Integrating Restdocs-API-Spec to create OpenAPI/Swagger specifications directly from your test cases.
✅ Writing test cases that both validate your API and generate documentation simultaneously.
Why this matters: Spring REST Docs ensures your documentation is always accurate and aligned with your API behavior since it’s generated directly from your tests!
Do you prefer auto-generated documentation tools or writing it manually? Share your experience in the comments!
#SpringBoot #SpringRESTDocs #OpenAPI #APIDocumentation #Java23 #AdventOfCode #backenddevelopment
🔗 Resources & Links mentioned in this video:
GitHub Repo: https://github.com/mikrethor/adventof...
🎬 All the videos for Advent of Spring Boot:
DAY 1: Create a Spring Boot app - • Advent of Spring Boot - DAY01 - Build your...
DAY 2: Add endpoints - • Advent of Spring Boot - DAY02 - Add endpoints
DAY 3: Handle http code response - https://youtube.com/live/J1xApH7iWE8
DAY 4: Use RouterFunction instead of RestController - https://youtube.com/live/aMnop_HB91g
DAY 5: Error handling - • Advent of Spring Boot - DAY05 - Error hand...
DAY 6: Customize error payload with ProblemDetail - • Advent of Spring Boot - DAY06 - Use Proble...
DAY 7: Add a real db (PostgreSQL) - • Advent of Spring Boot - DAY07 - Use a real...
DAY 8: Unit testing with Mockito - • Advent of Spring Boot - DAY08 - Unit tests...
DAY 9: Integration test with MockMvc - • Advent of Spring Boot - DAY09 - Integratio...
DAy10: Integration test with RestAssured - • Advent of Spring Boot - DAY10 - Integrati...
DAY11: Integration test with TestContainers - • Advent of Spring Boot - DAY11 - Use the re...
DAY12: Document your API with Swagger Doc - • Advent of Spring Boot - DAY12 - Document y...
DAY13: Document your API with Spring Rest Doc & eDocs - • Advent of Spring Boot - DAY13 - Document y...
DAY14: Properties Configuration with record - • Advent of Spring Boot - DAY14 - Handle you...
DAY15: Fields Validation - • Advent of Spring Boot - DAY15 - Validation...
DAY16: Build your API with a Dockerfile - • Advent of Spring Boot - DAY16 - Build your...
DAY17: Build your API with buildpacks - • Advent of Spring Boot - DAY17 - Build your...
DAY18: Build your API with buildpacks & GraalVM - • Advent of Spring Boot - DAY18 - Build your...
DAY19: Monitor your api with actuator - • Advent of Spring Boot - DAY19 - Need to in...
DAY20: Custom metrics with avtiuator and Micrometer - • Advent of Spring Boot - DAY20 - Expose met...
DAY21: Communicate with another API - the RestClient - • Advent of Spring Boot - DAY21 - Connect yo...
DAY22: Communicate with another API - the Http Interface - • Advent of Spring Boot - DAY22 - Connect yo...
DAY23: Improve UX with caching - • Advent of Spring Boot - DAY23 - Having per...
DAY24: Supercharge your API with Spring AI - RAG - • Advent of Spring Boot - DAY24 - Need to ad...
👋🏻 Connect with me:
Website: https://www.xavierbouclet.com
Twitter: https://x.com/XavierBOUCLET
Github: https://github.com/danvega
LinkedIn: / 🇨🇦-xavier-bouclet-667b0431
SUBSCRIBE TO MY CHANNEL: / @xavierbouclet ❤️