@RestController
@RequestMapping(value="/api")
public class EntityWithPaginationResource
extends java.lang.Object
| Constructor and Description |
|---|
EntityWithPaginationResource(EntityWithPaginationRepository entityWithPaginationRepository) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<EntityWithPagination> |
createEntityWithPagination(EntityWithPagination entityWithPagination)
POST /entity-with-paginations : Create a new entityWithPagination.
|
org.springframework.http.ResponseEntity<java.lang.Void> |
deleteEntityWithPagination(java.lang.Long id)
DELETE /entity-with-paginations/:id : delete the "id" entityWithPagination.
|
org.springframework.http.ResponseEntity<java.util.List<EntityWithPagination>> |
getAllEntityWithPaginations(org.springframework.data.domain.Pageable pageable)
GET /entity-with-paginations : get all the entityWithPaginations.
|
org.springframework.http.ResponseEntity<EntityWithPagination> |
getEntityWithPagination(java.lang.Long id)
GET /entity-with-paginations/:id : get the "id" entityWithPagination.
|
org.springframework.http.ResponseEntity<EntityWithPagination> |
updateEntityWithPagination(EntityWithPagination entityWithPagination)
PUT /entity-with-paginations : Updates an existing entityWithPagination.
|
public EntityWithPaginationResource(EntityWithPaginationRepository entityWithPaginationRepository)
@PostMapping(value="/entity-with-paginations") @Timed public org.springframework.http.ResponseEntity<EntityWithPagination> createEntityWithPagination(@RequestBody EntityWithPagination entityWithPagination) throws java.net.URISyntaxException
entityWithPagination - the entityWithPagination to createjava.net.URISyntaxException - if the Location URI syntax is incorrect@PutMapping(value="/entity-with-paginations") @Timed public org.springframework.http.ResponseEntity<EntityWithPagination> updateEntityWithPagination(@RequestBody EntityWithPagination entityWithPagination) throws java.net.URISyntaxException
entityWithPagination - the entityWithPagination to updatejava.net.URISyntaxException - if the Location URI syntax is incorrect@GetMapping(value="/entity-with-paginations") @Timed public org.springframework.http.ResponseEntity<java.util.List<EntityWithPagination>> getAllEntityWithPaginations(org.springframework.data.domain.Pageable pageable)
pageable - the pagination information@GetMapping(value="/entity-with-paginations/{id}")
@Timed
public org.springframework.http.ResponseEntity<EntityWithPagination> getEntityWithPagination(@PathVariable
java.lang.Long id)
id - the id of the entityWithPagination to retrieve@DeleteMapping(value="/entity-with-paginations/{id}")
@Timed
public org.springframework.http.ResponseEntity<java.lang.Void> deleteEntityWithPagination(@PathVariable
java.lang.Long id)
id - the id of the entityWithPagination to deleteCopyright © 2017 Osgiliath. All rights reserved.