Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/g-khan/spring-reactive-mongodb-web-service


https://github.com/g-khan/spring-reactive-mongodb-web-service

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

## spring-reactive-mongodb-web-service

User service for Spring Data Reactive MongoDB with Spring Webflux (Functional Endpoints)

![Project Status: Active](https://www.repostatus.org/badges/latest/active.svg)

### Prerequisites
* JDK 11+
* Docker or MongoDB installed
* [You can read my article on Medium](https://medium.com/yemeksepeti-teknoloji/spring-reactive-mongodb-ile-reactive-uygulama-geli%C5%9Ftirme-e046fa49ae58)

Examples

* Mono, Flux structures
* Functional Reactive Endpoints
* WebTestClient
* Spring Data Mongo Reactive

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

###
POST http://localhost:8083/api/v1/users
Content-Type: application/json

{
"name": "Zühtü",
"score": 52
}

###
PUT http://localhost:8083/api/v1/users/61ec13ca48d46147479f8fcd
Content-Type: application/json

{
"name": "Gokhanadev",
"score": 52
}

###
GET http://localhost:8083/api/v1/users/61ec13ca48d46147479f8fcd

###
DELETE http://localhost:8083/api/v1/users/61ec13ca48d46147479f8fcd

###
DELETE http://localhost:8083/api/v1/users?name=Zühtü