Using Spring with OpenAPI
summary
Demonstrates turning Spring MVC code into reusable OpenAPI artifacts by generating a YAML with springdoc (build- or runtime), producing a Spring server and a Java client with the OpenAPI Generator Maven plugin, and implementing the generated API to return a test payload ("hello spring one"). Shows runtime Swagger UI and a generated client that compiles, then packages the service into a container and registers the spec into Tanzu Application Platform so the cluster UI discovers and exposes the API descriptor.
AI-written summary · about
chapters (11)
- 0:00Introduction and speaker intro
- 1:51What is OpenAPI specification
- 8:33OpenAPI examples and Swagger UI
- 13:58Code-first vs API-first patterns
- 18:59Spring tools for OpenAPI
- 21:32Demo setup and Spring Boot project
- 24:05Generating OpenAPI with SmallRye
- 27:17Generating server and client code
- 36:43Publishing OpenAPI specifications
- 43:14OpenAPI in Tanzu Application Platform
- 50:01Q&A and closing
related talks
35mBringing together OpenAPI 3 and Spring Boot
48mDynamic OpenAPIs with Spring Cloud Gateway
35mAPI-First! Contract-First! Make API development great again!
01h 23mDocumenting RESTful APIs
44mThe Kung-Fu of Customizing OpenAPI
26mDocumenting Your API Effectively: a Complete Tour of Spring-doc
33mDocumenting REST APIs with Swagger
31mOpenAPIs are everywhere
