REST API example with Java11 - Reactive SPRING and Mongo DB
Pluralsight course "Spring Webflux: Getting started" by Esteban Herrera
In this project THE REST API are developed by functional endpoints
GET All products
curl -v http://localhost:8080/products
GET One Product
curl -v http://localhost:8080/products/{id}
ADD One Product
curl -v -H "Content-type: application/json" -d "{"name":"Italian Coffee", "price": 5.45}" http://localhost:8080/products/
UPDATE One Product
curl -v -H "Content-type: application/json" -d "{"name":"Black Tea", "price": 2.45}" -X PUT http://localhost:8080/products/{id}
DELETE One Product
curl -v -H "Content-type: application/json" -d "{"name":"Black Tea", "price": 2.45}" -X DELETE http://localhost:8080/products/{id}
DELETE ALL Products
curl -v -X DELETE http://localhost:8080/products