Spring Applications
Project: Input Validation and Documentation
The objective of this exercise is to provide input validation and documentation for the REST services of the bookstore application.
- Inject a validator into the
CatalogService
and use it to filter out books from Google's Book API that do not have an ISBN, title, author, publisher, or price.
- Add Bean Validation constraints to the method parameters of all REST controllers according to the API documentation, and annotate the controllers to activate bean validation..
- Add the SpringDoc library as Maven dependency to generate an OpenAPI documentations.