@RestController
@RequestMapping(value="/api")
public class EntityWithServiceImplAndDTOResource
extends java.lang.Object
Constructor and Description |
---|
EntityWithServiceImplAndDTOResource(EntityWithServiceImplAndDTOService entityWithServiceImplAndDTOService) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<EntityWithServiceImplAndDTODTO> |
createEntityWithServiceImplAndDTO(EntityWithServiceImplAndDTODTO entityWithServiceImplAndDTODTO)
POST /entity-with-service-impl-and-dtos : Create a new entityWithServiceImplAndDTO.
|
org.springframework.http.ResponseEntity<java.lang.Void> |
deleteEntityWithServiceImplAndDTO(java.lang.Long id)
DELETE /entity-with-service-impl-and-dtos/:id : delete the "id" entityWithServiceImplAndDTO.
|
java.util.List<EntityWithServiceImplAndDTODTO> |
getAllEntityWithServiceImplAndDTOS()
GET /entity-with-service-impl-and-dtos : get all the entityWithServiceImplAndDTOS.
|
org.springframework.http.ResponseEntity<EntityWithServiceImplAndDTODTO> |
getEntityWithServiceImplAndDTO(java.lang.Long id)
GET /entity-with-service-impl-and-dtos/:id : get the "id" entityWithServiceImplAndDTO.
|
org.springframework.http.ResponseEntity<EntityWithServiceImplAndDTODTO> |
updateEntityWithServiceImplAndDTO(EntityWithServiceImplAndDTODTO entityWithServiceImplAndDTODTO)
PUT /entity-with-service-impl-and-dtos : Updates an existing entityWithServiceImplAndDTO.
|
public EntityWithServiceImplAndDTOResource(EntityWithServiceImplAndDTOService entityWithServiceImplAndDTOService)
@PostMapping(value="/entity-with-service-impl-and-dtos") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceImplAndDTODTO> createEntityWithServiceImplAndDTO(@RequestBody EntityWithServiceImplAndDTODTO entityWithServiceImplAndDTODTO) throws java.net.URISyntaxException
entityWithServiceImplAndDTODTO
- the entityWithServiceImplAndDTODTO to createjava.net.URISyntaxException
- if the Location URI syntax is incorrect@PutMapping(value="/entity-with-service-impl-and-dtos") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceImplAndDTODTO> updateEntityWithServiceImplAndDTO(@RequestBody EntityWithServiceImplAndDTODTO entityWithServiceImplAndDTODTO) throws java.net.URISyntaxException
entityWithServiceImplAndDTODTO
- the entityWithServiceImplAndDTODTO to updatejava.net.URISyntaxException
- if the Location URI syntax is incorrect@GetMapping(value="/entity-with-service-impl-and-dtos") @Timed public java.util.List<EntityWithServiceImplAndDTODTO> getAllEntityWithServiceImplAndDTOS()
@GetMapping(value="/entity-with-service-impl-and-dtos/{id}") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceImplAndDTODTO> getEntityWithServiceImplAndDTO(@PathVariable java.lang.Long id)
id
- the id of the entityWithServiceImplAndDTODTO to retrieve@DeleteMapping(value="/entity-with-service-impl-and-dtos/{id}") @Timed public org.springframework.http.ResponseEntity<java.lang.Void> deleteEntityWithServiceImplAndDTO(@PathVariable java.lang.Long id)
id
- the id of the entityWithServiceImplAndDTODTO to deleteCopyright © 2017 Osgiliath. All rights reserved.