Skip to content

vsaravanan/spring-webflux-reactive-rest-api-demo

Repository files navigation

spring-webflux-reactive-rest-api-demo

Building Reactive app with Spring Webflux. [Project Status: Active – The project has reached a stable, usable state and is being actively developed.]

Examples

  • Reactive Endpoints
  • Mono, Flux structures
  • Functional Reactive Endpoints
  • WebClient & WebTestClient
  • R2DBC with PostgreSQL

Requirements

  1. Java - 21
  2. Maven- 3.9.4
  3. 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 -

 mvn clean install

The app will start running at http://localhost:10200.

Running the Tests Type the following command in your terminal to run the tests -

 mvn test

Requests

###
http://localhost:10200/swagger-ui/index.html

###  
GET http://localhost:10200/api/v1/users  

###  
GET http://localhost:10200/api/v1/users/init
  
###  
POST http://localhost:10200/api/v1/users/webflux
Content-Type: application/json  
  
{  
  "name": "Santhosh",  
  "score": 52  
}  
  
###  
PUT http://localhost:10200/api/v1/users/24  
Content-Type: application/json  
  
{  
  "name": "saravandev",  
  "score": 52  
}  

###  
DELETE http://localhost:10200/api/v1/users/24  

###  
GET http://localhost:10200/api/v1/users/1  
  
###  
GET http://localhost:10200/api/v1/users/flux  
  
###  
GET http://localhost:10200/api/v1/users/guests/1

About

Reactive Endpoints Mono Flux WebClient WebTestClient R2DBC Java 21 Docker 20

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy