Skip to content

origoni/springboot-webflux-demo1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot-webflux-demo1 Build Status

spring-boot-webflux reactive rest demo using spring-boot-starter-data-mongodb-reactive

Quick Start

  • JDK 1.8
  • Maven 3.5
  • Git
git clone https://github.com/origoni/springboot-webflux-demo1.git
cd springboot-webflux-demo1
mvn spring-boot:run

Test

create (& update)

curl -d '{"name":"olivia","age":5}' -H 'Content-Type: application/json' -v 'http://localhost:8089/person'

update (& create)

curl -X PUT -d '{"name":"noah","age":3}' -H 'Content-Type: application/json' -v 'http://localhost:8089/person'

list

curl -H 'Content-Type: application/json' -v 'http://localhost:8089/person'

read

curl -H 'Content-Type: application/json' -v 'http://localhost:8089/person/olivia'

update, delete Test

create

curl -d '{"name":"test","age":0}' -H 'Content-Type: application/json' -v 'http://localhost:8089/person'

check

curl -H 'Content-Type: application/json' -v 'http://localhost:8089/person'

update

curl -d '{"name":"test","age":10}' -H 'Content-Type: application/json' -v 'http://localhost:8089/person'

check

curl -H 'Content-Type: application/json' -v 'http://localhost:8089/person'

delete

curl -X DELETE -H 'Content-Type: application/json' -v 'http://localhost:8089/person/test'

check

curl -H 'Content-Type: application/json' -v 'http://localhost:8089/person'

Dependency

Spring Boot 2.0.1.RELEASE

  • spring-boot-starter-webflux
  • spring-boot-starter-data-mongodb-reactive
  • de.flapdoodle.embed.de.flapdoodle.embed.mongo
  • org.projectlombok.lombok

Releases

No releases published

Packages

No packages published

Languages