@RestController
@RequestMapping(value="/api")
public class EntityWithServiceClassAndDTOResource
extends java.lang.Object
Constructor and Description |
---|
EntityWithServiceClassAndDTOResource(EntityWithServiceClassAndDTOService entityWithServiceClassAndDTOService) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<EntityWithServiceClassAndDTODTO> |
createEntityWithServiceClassAndDTO(EntityWithServiceClassAndDTODTO entityWithServiceClassAndDTODTO)
POST /entity-with-service-class-and-dtos : Create a new entityWithServiceClassAndDTO.
|
org.springframework.http.ResponseEntity<java.lang.Void> |
deleteEntityWithServiceClassAndDTO(java.lang.Long id)
DELETE /entity-with-service-class-and-dtos/:id : delete the "id" entityWithServiceClassAndDTO.
|
java.util.List<EntityWithServiceClassAndDTODTO> |
getAllEntityWithServiceClassAndDTOS()
GET /entity-with-service-class-and-dtos : get all the entityWithServiceClassAndDTOS.
|
org.springframework.http.ResponseEntity<EntityWithServiceClassAndDTODTO> |
getEntityWithServiceClassAndDTO(java.lang.Long id)
GET /entity-with-service-class-and-dtos/:id : get the "id" entityWithServiceClassAndDTO.
|
org.springframework.http.ResponseEntity<EntityWithServiceClassAndDTODTO> |
updateEntityWithServiceClassAndDTO(EntityWithServiceClassAndDTODTO entityWithServiceClassAndDTODTO)
PUT /entity-with-service-class-and-dtos : Updates an existing entityWithServiceClassAndDTO.
|
public EntityWithServiceClassAndDTOResource(EntityWithServiceClassAndDTOService entityWithServiceClassAndDTOService)
@PostMapping(value="/entity-with-service-class-and-dtos") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceClassAndDTODTO> createEntityWithServiceClassAndDTO(@RequestBody EntityWithServiceClassAndDTODTO entityWithServiceClassAndDTODTO) throws java.net.URISyntaxException
entityWithServiceClassAndDTODTO
- the entityWithServiceClassAndDTODTO to createjava.net.URISyntaxException
- if the Location URI syntax is incorrect@PutMapping(value="/entity-with-service-class-and-dtos") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceClassAndDTODTO> updateEntityWithServiceClassAndDTO(@RequestBody EntityWithServiceClassAndDTODTO entityWithServiceClassAndDTODTO) throws java.net.URISyntaxException
entityWithServiceClassAndDTODTO
- the entityWithServiceClassAndDTODTO to updatejava.net.URISyntaxException
- if the Location URI syntax is incorrect@GetMapping(value="/entity-with-service-class-and-dtos") @Timed public java.util.List<EntityWithServiceClassAndDTODTO> getAllEntityWithServiceClassAndDTOS()
@GetMapping(value="/entity-with-service-class-and-dtos/{id}") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceClassAndDTODTO> getEntityWithServiceClassAndDTO(@PathVariable java.lang.Long id)
id
- the id of the entityWithServiceClassAndDTODTO to retrieve@DeleteMapping(value="/entity-with-service-class-and-dtos/{id}") @Timed public org.springframework.http.ResponseEntity<java.lang.Void> deleteEntityWithServiceClassAndDTO(@PathVariable java.lang.Long id)
id
- the id of the entityWithServiceClassAndDTODTO to deleteCopyright © 2017 Osgiliath. All rights reserved.