This project is an example of a reactive micro-service developed using Spring WebFlux. It also has a Server-Side Event example. (Try at http://localhost:8080/index.html after running this demo on your local machine)
./gradlew clean build
./gradlew bootRun
curl --request GET \
--url http://localhost:8080/products
curl --request GET \
--url http://localhost:8080/products/{id}
curl --request POST \
--url http://localhost:8080/products \
--header 'content-type: application/json' \
--data '{
"name": "Black Tea with Milk",
"price": 3.49
}'
curl --request PUT \
--url http://localhost:8080/products/{id} \
--header 'content-type: application/json' \
--data '{
"name": "Black Tea with Milk",
"price": 3.99
}'
curl --request DELETE \
--url http://localhost:8080/products/{id}
curl --request DELETE \
--url http://localhost:8080/products
curl --request GET \
--url http://localhost:8080/products/events