Building Reactive app with Spring Webflux. []
Examples
- Reactive Endpoints
- Mono, Flux structures
- Functional Reactive Endpoints
- WebClient & WebTestClient
- R2DBC with PostgreSQL
- Java - 1.11.x
- Gradle- 7.x.x
- Docker- 20.x.x
Running the Database Type the following command in your terminal to run the database -
docker-compose up
Running the App Type the following command in your terminal to run the app -
./gradlew bootRun
The app will start running at http://localhost:8099.
Running the Tests Type the following command in your terminal to run the tests -
./gradlew test
###
GET http://localhost:8099/api/v1/users
###
POST http://localhost:8099/api/v1/users
Content-Type: application/json
{
"name": "Betül",
"score": 52
}
###
PUT http://localhost:8099/api/v1/users/24
Content-Type: application/json
{
"name": "Gokhanadev",
"score": 52
}
###
DELETE http://localhost:8099/api/v1/users/24
###
GET http://localhost:8099/api/v1/users/1
###
GET http://localhost:8099/api/v1/users/flux
###
GET http://localhost:8099/api/v1/users/guests/1