Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/simplydemo/spring-reactive-functional-demo

spring-webflux reactive functional router handler
https://github.com/simplydemo/spring-reactive-functional-demo

kotlin spring-security spring-webflux-functional

Last synced: 21 days ago
JSON representation

spring-webflux reactive functional router handler

Awesome Lists containing this project

README

        

# spring-reactive-demo
spring-reactive-demo

## Build
```
./mvnw clean package -DskipTests=true
```

## Run
```
./mvnw spring-boot:run
```

## Test

### Get Users
```
curl -v -L -X GET http://localhost:8080/api/users
```

### Get User
```
curl -v -L -X GET http://localhost:8080/api/users/1
```

### Add User
```
curl -v -L -X POST http://localhost:8080/api/users \
--header 'Content-Type: application/json' \
--data-raw '{
"userName": "scott",
"email": "[email protected]"
}'
```

### Update User
```
curl -v -L -X PUT http://localhost:8080/api/users/1 \
--header 'Content-Type: application/json' \
--data-raw '{
"userName": "melon",
"email": "[email protected]"
}'
```

### Delete User
```
curl -v -L -X DELETE http://localhost:8080/api/users/10 \
--header 'Content-Type: application/json'
```