Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/simplydemo/spring-reactive-functional-demo
- Owner: simplydemo
- License: mit
- Created: 2022-04-08T14:19:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-09T15:27:53.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T04:33:04.318Z (2 months ago)
- Topics: kotlin, spring-security, spring-webflux-functional
- Language: Kotlin
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'
```