@RestController
@RequestMapping(value="/api")
public class EntityWithDTOResource
extends java.lang.Object
Constructor and Description |
---|
EntityWithDTOResource(EntityWithDTORepository entityWithDTORepository,
EntityWithDTOMapper entityWithDTOMapper) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<EntityWithDTODTO> |
createEntityWithDTO(EntityWithDTODTO entityWithDTODTO)
POST /entity-with-dtos : Create a new entityWithDTO.
|
org.springframework.http.ResponseEntity<java.lang.Void> |
deleteEntityWithDTO(java.lang.Long id)
DELETE /entity-with-dtos/:id : delete the "id" entityWithDTO.
|
java.util.List<EntityWithDTODTO> |
getAllEntityWithDTOS()
GET /entity-with-dtos : get all the entityWithDTOS.
|
org.springframework.http.ResponseEntity<EntityWithDTODTO> |
getEntityWithDTO(java.lang.Long id)
GET /entity-with-dtos/:id : get the "id" entityWithDTO.
|
org.springframework.http.ResponseEntity<EntityWithDTODTO> |
updateEntityWithDTO(EntityWithDTODTO entityWithDTODTO)
PUT /entity-with-dtos : Updates an existing entityWithDTO.
|
public EntityWithDTOResource(EntityWithDTORepository entityWithDTORepository, EntityWithDTOMapper entityWithDTOMapper)
@PostMapping(value="/entity-with-dtos") @Timed public org.springframework.http.ResponseEntity<EntityWithDTODTO> createEntityWithDTO(@RequestBody EntityWithDTODTO entityWithDTODTO) throws java.net.URISyntaxException
entityWithDTODTO
- the entityWithDTODTO to createjava.net.URISyntaxException
- if the Location URI syntax is incorrect@PutMapping(value="/entity-with-dtos") @Timed public org.springframework.http.ResponseEntity<EntityWithDTODTO> updateEntityWithDTO(@RequestBody EntityWithDTODTO entityWithDTODTO) throws java.net.URISyntaxException
entityWithDTODTO
- the entityWithDTODTO to updatejava.net.URISyntaxException
- if the Location URI syntax is incorrect@GetMapping(value="/entity-with-dtos") @Timed public java.util.List<EntityWithDTODTO> getAllEntityWithDTOS()
@GetMapping(value="/entity-with-dtos/{id}") @Timed public org.springframework.http.ResponseEntity<EntityWithDTODTO> getEntityWithDTO(@PathVariable java.lang.Long id)
id
- the id of the entityWithDTODTO to retrieve@DeleteMapping(value="/entity-with-dtos/{id}") @Timed public org.springframework.http.ResponseEntity<java.lang.Void> deleteEntityWithDTO(@PathVariable java.lang.Long id)
id
- the id of the entityWithDTODTO to deleteCopyright © 2017 Osgiliath. All rights reserved.