Package energy.eddie.dataneeds.web
Class DataNeedsController
java.lang.Object
energy.eddie.dataneeds.web.DataNeedsController
- All Implemented Interfaces:
DataNeedsControllerOpenApi
@RestController
@RequestMapping(value="/api",
produces="application/json")
public class DataNeedsController
extends Object
implements DataNeedsControllerOpenApi
-
Field Summary
Fields inherited from interface energy.eddie.dataneeds.web.DataNeedsControllerOpenApi
EXAMPLE_RESPONSE_JSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<List<DataNeedsNameAndIdProjection>> org.springframework.http.ResponseEntity<DataNeed> getDataNeeds(String id) getDataNeeds(Set<String> ids)
-
Constructor Details
-
DataNeedsController
-
-
Method Details
-
getDataNeedIdsAndNames
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<List<DataNeedsNameAndIdProjection>> getDataNeedIdsAndNames()- Specified by:
getDataNeedIdsAndNamesin interfaceDataNeedsControllerOpenApi
-
getDataNeeds
@GetMapping(value="/{id}", produces="application/json") public org.springframework.http.ResponseEntity<DataNeed> getDataNeeds(@PathVariable String id) throws DataNeedNotFoundException - Specified by:
getDataNeedsin interfaceDataNeedsControllerOpenApi- Throws:
DataNeedNotFoundException
-
getDataNeeds
@GetMapping(value="/", produces="application/json") public org.springframework.http.ResponseEntity<List<DataNeed>> getDataNeeds(@RequestParam("data-need-id") Set<String> ids) - Specified by:
getDataNeedsin interfaceDataNeedsControllerOpenApi
-