Class TestController


  • @RestController
    public class TestController
    extends Object
    The test controller.
    Author:
    Christian Bremer
    • Constructor Detail

      • TestController

        public TestController()
    • Method Detail

      • publicResource

        @GetMapping(path="/public")
        public reactor.core.publisher.Mono<String> publicResource()
        Public resource.
        Returns:
        the mono
      • protectedResource

        @GetMapping(path="/protected")
        public reactor.core.publisher.Mono<String> protectedResource()
        Protected resource.
        Returns:
        the mono
      • protectedPostResource

        @PostMapping(path="/protected",
                     consumes="text/plain",
                     produces="text/plain")
        public reactor.core.publisher.Mono<String> protectedPostResource​(@RequestBody
                                                                         String bode)
        Protected post resource.
        Parameters:
        bode - the bode
        Returns:
        the mono