@RestController
@RequestMapping(value="/api")
public class EntityWithPaginationAndDTOResource
extends java.lang.Object
Constructor and Description |
---|
EntityWithPaginationAndDTOResource(EntityWithPaginationAndDTORepository entityWithPaginationAndDTORepository,
EntityWithPaginationAndDTOMapper entityWithPaginationAndDTOMapper) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<EntityWithPaginationAndDTODTO> |
createEntityWithPaginationAndDTO(EntityWithPaginationAndDTODTO entityWithPaginationAndDTODTO)
POST /entity-with-pagination-and-dtos : Create a new entityWithPaginationAndDTO.
|
org.springframework.http.ResponseEntity<java.lang.Void> |
deleteEntityWithPaginationAndDTO(java.lang.Long id)
DELETE /entity-with-pagination-and-dtos/:id : delete the "id" entityWithPaginationAndDTO.
|
org.springframework.http.ResponseEntity<java.util.List<EntityWithPaginationAndDTODTO>> |
getAllEntityWithPaginationAndDTOS(org.springframework.data.domain.Pageable pageable)
GET /entity-with-pagination-and-dtos : get all the entityWithPaginationAndDTOS.
|
org.springframework.http.ResponseEntity<EntityWithPaginationAndDTODTO> |
getEntityWithPaginationAndDTO(java.lang.Long id)
GET /entity-with-pagination-and-dtos/:id : get the "id" entityWithPaginationAndDTO.
|
org.springframework.http.ResponseEntity<EntityWithPaginationAndDTODTO> |
updateEntityWithPaginationAndDTO(EntityWithPaginationAndDTODTO entityWithPaginationAndDTODTO)
PUT /entity-with-pagination-and-dtos : Updates an existing entityWithPaginationAndDTO.
|
public EntityWithPaginationAndDTOResource(EntityWithPaginationAndDTORepository entityWithPaginationAndDTORepository, EntityWithPaginationAndDTOMapper entityWithPaginationAndDTOMapper)
@PostMapping(value="/entity-with-pagination-and-dtos") @Timed public org.springframework.http.ResponseEntity<EntityWithPaginationAndDTODTO> createEntityWithPaginationAndDTO(@RequestBody EntityWithPaginationAndDTODTO entityWithPaginationAndDTODTO) throws java.net.URISyntaxException
entityWithPaginationAndDTODTO
- the entityWithPaginationAndDTODTO to createjava.net.URISyntaxException
- if the Location URI syntax is incorrect@PutMapping(value="/entity-with-pagination-and-dtos") @Timed public org.springframework.http.ResponseEntity<EntityWithPaginationAndDTODTO> updateEntityWithPaginationAndDTO(@RequestBody EntityWithPaginationAndDTODTO entityWithPaginationAndDTODTO) throws java.net.URISyntaxException
entityWithPaginationAndDTODTO
- the entityWithPaginationAndDTODTO to updatejava.net.URISyntaxException
- if the Location URI syntax is incorrect@GetMapping(value="/entity-with-pagination-and-dtos") @Timed public org.springframework.http.ResponseEntity<java.util.List<EntityWithPaginationAndDTODTO>> getAllEntityWithPaginationAndDTOS(org.springframework.data.domain.Pageable pageable)
pageable
- the pagination information@GetMapping(value="/entity-with-pagination-and-dtos/{id}") @Timed public org.springframework.http.ResponseEntity<EntityWithPaginationAndDTODTO> getEntityWithPaginationAndDTO(@PathVariable java.lang.Long id)
id
- the id of the entityWithPaginationAndDTODTO to retrieve@DeleteMapping(value="/entity-with-pagination-and-dtos/{id}") @Timed public org.springframework.http.ResponseEntity<java.lang.Void> deleteEntityWithPaginationAndDTO(@PathVariable java.lang.Long id)
id
- the id of the entityWithPaginationAndDTODTO to deleteCopyright © 2017 Osgiliath. All rights reserved.