Skip to content

vicboma1/Microservices-SpringBoot-ReactorCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservices with Spring Boot v2.0 & Reactor Core v3.1.0

Sample

Quality Gate

Api - /

    /**
     * @input http://localhost:8080
     * @return {"helloWorld":"Hello World!"}
     */
     @GetMapping("/")
     Mono<HelloWorldModel> home();
     

Api - hi

    /**
    * @input http://localhost:8080/hi/vicboma
    * @param name
    * @return {"hi":"vicboma"}
    */
    @GetMapping("/hi/{name}")
    Mono<GrettingModel> hi(@PathVariable String name);

   /**
    * @input http://localhost:8080/hi/vicboma
    * @param name
    * @return {"hi":"vicboma"}
    */
    @GetMapping("/hi/{name}/delayDefault")
    Mono<GrettingModel> hiDelayDefault(@PathVariable String name);

   /**
    * @input http://localhost:8080/hi/vicboma/delay/3000
    * @param name
    * @param time
    * @return {"hi":"vicboma"}
    */
    @GetMapping("/hi/{name}/delay/{timeMS}")
    Mono<GrettingModel> hiDelayTime(@PathVariable String name, @PathVariable Long time);

   /**
    * @input http://localhost:8080/hi/vicboma/delay?timeMS=5000
    * @param name
    * @param timeMS
    * @return {"hi":"vicboma"}
    */
    @GetMapping("/hi/{name}/delay")
    Mono<GrettingModel> hiDelayTimeRequestParam(@PathVariable String name, @RequestParam Long timeMS);

About

Microservices with Spring Boot v2.0 + Reactor Core v3.1.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages