- Notifications
You must be signed in to change notification settings - Fork0
The purpose of this project is to demonstrate how we can use Spring WebFlux to create a simple reactive web application.
License
coderbunty/spring-webflux-reactive-rest-api-example
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The purpose of this project is to demonstrate how we canuseSpring WebFlux to createa simple reactive web application.
This project usesPostgreSQL implementation of the R2DBC SPI.
project can be compiled with JDK 8 and abovejavac
.
To compile just domvn clean package
.
- JAVA 8 should be installed
- Postgres should be up and running at : localhost:5432
To run the application execute the following:
java -jar target/reactive-examples*.jar
You can also use the Swagger-UI to test the application.
for more detailed technical information please check mypost :https://dassum.medium.com/building-a-reactive-restful-web-service-using-spring-boot-and-postgres-c8e157dbc81d
The server will start athttp://localhost:8080.
The Swagger UI will open at :http://localhost:8080/swagger-ui/index.html
The application contains the following REST APIs
1. GET /users - Get All Users2. POST /users - To create a User3. GET /users/{userId} - Retrieve an User by Id3. PUT /users/{userId} - Update an User4. DELETE /users/{userId} - Delete an User4. GET /users/events - Stream users to a browser as Server-Sent Events
It contain a sample WebClient to retrieve data from our User Management application.
About
The purpose of this project is to demonstrate how we can use Spring WebFlux to create a simple reactive web application.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Java100.0%