| Package | Description |
|---|---|
| dmv.spring.demo.rest.controller |
Rest Controller
|
| dmv.spring.demo.rest.controller.apidocs |
Swagger (API documenting tool) at Controller level
|
| dmv.spring.demo.rest.representation.assembler |
DTO assemblers
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<UserDTO> |
UserRestController.createUser(User user,
javax.servlet.http.HttpServletRequest request,
org.springframework.web.util.UriComponentsBuilder uriBuilder) |
org.springframework.http.ResponseEntity<UserDTO> |
UserRestController.getUserByEmail(String email) |
org.springframework.http.ResponseEntity<UserDTO> |
UserRestController.getUserById(Long userId) |
org.springframework.http.ResponseEntity<UserDTO> |
UserRestController.updateUser(Long userId,
User user,
javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<UserDTO> |
UserRestApiDocs.createUser(User user,
javax.servlet.http.HttpServletRequest request,
org.springframework.web.util.UriComponentsBuilder uriBuilder) |
org.springframework.http.ResponseEntity<UserDTO> |
UserRestApiDocs.getUserByEmail(String email) |
org.springframework.http.ResponseEntity<UserDTO> |
UserRestApiDocs.getUserById(Long userId) |
org.springframework.http.ResponseEntity<UserDTO> |
UserRestApiDocs.updateUser(Long userId,
User user,
javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
UserDTO |
UserDTOAsm.toResource(User user) |