Class MonetaryPovertyController
java.lang.Object
com.samupert.univpm.eurostat.monetary.poverty.controller.MonetaryPovertyController
@RestController
@RequestMapping("/api/v1/monetary-poverty")
public class MonetaryPovertyController
extends Object
Rest controller for the Monetary Poverty entity.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAll
(int pageNumber, int pageSize) Get all Monetary Poverty data.org.springframework.http.ResponseEntity<EntityMetadata>
Gets the metadata of the Monetary Poverty entity.searchByCriteria
(int pageNumber, int pageSize, SearchCriteriaDto searchCriteria) Get all Monetary Poverty data filtered by a given search criteria.
-
Constructor Details
-
MonetaryPovertyController
public MonetaryPovertyController()
-
-
Method Details
-
getAll
@GetMapping public List<MonetaryPoverty> getAll(@RequestParam(name="page",defaultValue="0") int pageNumber, @RequestParam(name="pageSize",defaultValue="10") int pageSize) Get all Monetary Poverty data.- Parameters:
pageNumber
- The page number to retrieve.pageSize
- The number of elements per page.- Returns:
- The list of Monetary Poverty data for the given page.
-
searchByCriteria
@PostMapping("search") public List<MonetaryPoverty> searchByCriteria(@RequestParam(name="page",defaultValue="0") int pageNumber, @RequestParam(name="pageSize",defaultValue="10") int pageSize, @RequestBody SearchCriteriaDto searchCriteria) Get all Monetary Poverty data filtered by a given search criteria.- Parameters:
pageNumber
- The page number to retrieve.pageSize
- The number of elements per page.searchCriteria
- The search criteria to apply. SeeSearchCriteriaDto
.- Returns:
- The list of Monetary Poverty data for the given page, filtered by the provided search criteria.
-
getMetadata
@GetMapping("metadata") public org.springframework.http.ResponseEntity<EntityMetadata> getMetadata()Gets the metadata of the Monetary Poverty entity.- Returns:
- The metadata of the Monetary Poverty entity. See
EntityMetadata
.
-