Class BasicController

java.lang.Object
ai.apiverse.apisuite.testController.BasicController

@RestController @RequestMapping("/api") public class BasicController extends Object
  • Constructor Details

    • BasicController

      public BasicController()
  • Method Details

    • sayHello

      @GetMapping("/hello") public org.springframework.http.ResponseEntity<String> sayHello()
    • sayHellopost

      @PostMapping("/hello") public org.springframework.http.ResponseEntity<String> sayHellopost(@RequestBody String body)
    • greetUser

      @GetMapping("/greet/{name}") public org.springframework.http.ResponseEntity<String> greetUser(@PathVariable String name, @RequestParam(value="age",required=false) Integer age, @RequestParam(value="country",required=false) String country)