Congratulations! You’ve completed a CRUD application end-to-end with Spring Boot and Spring Data JPA. Your application can:
- Create plants in the database by making POST requests and the
- Read plants in the database by making GET requests and the
- Update plants in the database by using getters and setters to check and modify fields in the
Plantentity, and the
- Delete plants in the database by using the
.deletemethod of the
With this knowledge, you should be able to create any CRUD application with Spring Boot for any data model. So lace your boots and spring into action!
Play around with your Plants application! Try using
curl to stress test all of your endpoints and ensure you haven’t introduced any bugs unintentionally.
If it makes it easier to read, you can “pipe” the output of
json_pp like below:
curl localhost:4001/plants | json_pp