@RestController
@RequestMapping(path="/rest/roles",
produces="application/json;charset=UTF-8")
public class RoleRestController
extends Object
implements RoleRestApiDocs
RoleRepository Restful endpoints.| Constructor and Description |
|---|
RoleRestController(RoleRepository roleRepository,
RoleDTOAsm roleDTOAsm,
UserLinkResourceAsm userLinkAsm) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<RoleDTO> |
getRole(String shortName) |
org.springframework.http.ResponseEntity<org.springframework.hateoas.Resources<UserLinkResource>> |
getUsers(String shortName,
javax.servlet.http.HttpServletRequest request) |
@Autowired public RoleRestController(RoleRepository roleRepository, RoleDTOAsm roleDTOAsm, UserLinkResourceAsm userLinkAsm)
@RequestMapping(path="/{shortName}",
method=GET)
public org.springframework.http.ResponseEntity<RoleDTO> getRole(@PathVariable
String shortName)
getRole in interface RoleRestApiDocs@RequestMapping(path="/{shortName}/users",
method=GET)
public org.springframework.http.ResponseEntity<org.springframework.hateoas.Resources<UserLinkResource>> getUsers(@PathVariable
String shortName,
javax.servlet.http.HttpServletRequest request)
getUsers in interface RoleRestApiDocs