Class RESTController

java.lang.Object
org.xbricks.heimdall.controllers.RESTController

@Controller public class RESTController extends Object
Created by Juraj Horak
  • Constructor Details

    • RESTController

      public RESTController()
  • Method Details

    • setUserService

      @Autowired public void setUserService(UserService userService)
    • findByPath

      @PostMapping @RequestMapping("/find/{username}") @ResponseBody public org.springframework.http.ResponseEntity<String> findByPath(@PathVariable String username)
    • find

      @PostMapping @RequestMapping("/find") @ResponseBody public org.springframework.http.ResponseEntity<String> find(@RequestParam(value="username",required=false) String username, @RequestParam(value="email",required=false) String email)
    • saveOrUpdate

      @PostMapping @RequestMapping("/user") @ResponseBody public org.springframework.http.ResponseEntity<String> saveOrUpdate(@ModelAttribute UserCommand userCommand)
    • deleteUser

      @GetMapping @RequestMapping("/user/{username}/delete") public org.springframework.http.ResponseEntity<String> deleteUser(@PathVariable String username)