Interface ControllerApi
-
- All Known Implementing Classes:
ControllerImpl
@RequestMapping(path="/api") public interface ControllerApi
The controller api.- Author:
- Christian Bremer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<String>
postData(reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> data)
Post data mono.reactor.core.publisher.Mono<String>
postParts(org.springframework.http.codec.multipart.FormFieldPart stringPart)
Post parts mono.reactor.core.publisher.Mono<String>
postPublisher(org.reactivestreams.Publisher<String> publisher)
Post publisher mono.reactor.core.publisher.Mono<String>
postResource(org.springframework.core.io.Resource resource)
Post resource mono.reactor.core.publisher.Mono<Map<String,Object>>
putStringValue(String name, String payload)
Put string value mono.
-
-
-
Method Detail
-
postData
@PostMapping(path="/data", consumes="*/*") reactor.core.publisher.Mono<String> postData(@RequestBody reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> data)
Post data mono.- Parameters:
data
- the data- Returns:
- the mono
-
postParts
@PostMapping(path="/multipart/parts", consumes="multipart/form-data", produces="application/json") reactor.core.publisher.Mono<String> postParts(@RequestPart(name="string") org.springframework.http.codec.multipart.FormFieldPart stringPart)
Post parts mono.- Parameters:
stringPart
- the string part- Returns:
- the mono
-
postPublisher
@RequestMapping(path="/publisher", method=POST, consumes="text/*") reactor.core.publisher.Mono<String> postPublisher(@RequestBody org.reactivestreams.Publisher<String> publisher)
Post publisher mono.- Parameters:
publisher
- the publisher- Returns:
- the mono
-
postResource
@RequestMapping(path="/resource", method=POST, consumes="text/*") reactor.core.publisher.Mono<String> postResource(@RequestBody org.springframework.core.io.Resource resource)
Post resource mono.- Parameters:
resource
- the resource- Returns:
- the mono
-
putStringValue
@PutMapping(path="/value/{name}", produces="application/json", consumes="text/plain") reactor.core.publisher.Mono<Map<String,Object>> putStringValue(@PathVariable("name") String name, @RequestBody String payload)
Put string value mono.- Parameters:
name
- the namepayload
- the payload- Returns:
- the mono
-
-