Class SpringRestController
- java.lang.Object
-
- net.officefloor.tutorial.springwebfluxhttpserver.SpringRestController
-
@RestController @RequestMapping("/rest") public class SpringRestController extends java.lang.Object
SpringRestController
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description SpringRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<ResponseModel>
get()
reactor.core.publisher.Mono<ResponseModel>
path(java.lang.String param)
reactor.core.publisher.Flux<ResponseModel>
post(RequestModel request)
-
-
-
Method Detail
-
get
@GetMapping public reactor.core.publisher.Mono<ResponseModel> get()
-
path
@GetMapping("/path/{param}") public reactor.core.publisher.Mono<ResponseModel> path(@PathVariable java.lang.String param)
-
post
@PostMapping("/update") public reactor.core.publisher.Flux<ResponseModel> post(@RequestBody RequestModel request)
-
-