Skip to content

rmzoni/webflux-test-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactive Product API

This API is example usage of the Spring Webflux to build a Reactive API on top of the Observer Design Pattern.

Build

mvn clean install

Run

mvn clean spring-boot:run

Test

Get all the products as a normal HTTP request:

curl -X GET http://localhost:8787/products -H 'Accept: application/json' --verbose

Get all the products as subsciption requisition using Server Sent Events:

curl -X GET http://localhost:8787/products -H 'Accept: text/event-stream' --verbose

Get a non stop interval event stream:

curl -X GET http://localhost:8787/products/events -H 'Accept: text/event-stream' -N --verbose

About

Spring Boot WebFlux Test API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published