Simple demo on how to build a REST API with Spring Boot
Features:
- Spring Boot 2.1
- Spring Data Mongo
- Spring Validation
- mongo-java-server with "in memory storage"
- Swagger
Things to investigate further:
- Cleanup swagger:
- References unused HTTP status codes
- Example for authors
- Search for mutiple fields (author + title)
- CORS
- Logging
- Async controller
- Security (spring-boot-starter-security)
- Metrics (actuator, or dropwizard metrics)
- Deploy to heroku (or something else)
- Coverage (coveralls, codecov?)
- Fongo for dev, Mongo for prod
To run:
mvn spring-boot:run
Swagger UI : http://localhost:8080/swagger-ui.html