Package energy.eddie.dataneeds.web
Class DataNeedsController
java.lang.Object
energy.eddie.dataneeds.web.DataNeedsController
@RestController
@RequestMapping(value="/api",
produces="application/json")
public class DataNeedsController
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DataNeed> getDataNeed(String id) org.springframework.http.ResponseEntity<List<DataNeedsNameAndIdProjection>>
-
Field Details
-
EXAMPLE_RESPONSE_JSON
- See Also:
-
-
Constructor Details
-
DataNeedsController
-
-
Method Details
-
getDataNeedIdsAndNames
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<List<DataNeedsNameAndIdProjection>> getDataNeedIdsAndNames() -
getDataNeed
@GetMapping(value="/{id}", produces="application/json") public org.springframework.http.ResponseEntity<DataNeed> getDataNeed(@PathVariable String id) throws DataNeedNotFoundException - Throws:
DataNeedNotFoundException
-