Package de.trustable.ca3s.core.web.rest
Class RequestAttributeValueResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.RequestAttributeValueResource
-
@RestController @RequestMapping("/api") public class RequestAttributeValueResource extends ObjectREST controller for managingRequestAttributeValue.
-
-
Constructor Summary
Constructors Constructor Description RequestAttributeValueResource(RequestAttributeValueService requestAttributeValueService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<RequestAttributeValue>createRequestAttributeValue(@Valid RequestAttributeValue requestAttributeValue)POST /request-attribute-values: Create a new requestAttributeValue.org.springframework.http.ResponseEntity<Void>deleteRequestAttributeValue(Long id)DELETE /request-attribute-values/:id: delete the "id" requestAttributeValue.List<RequestAttributeValue>getAllRequestAttributeValues()GET /request-attribute-values: get all the requestAttributeValues.org.springframework.http.ResponseEntity<RequestAttributeValue>getRequestAttributeValue(Long id)GET /request-attribute-values/:id: get the "id" requestAttributeValue.org.springframework.http.ResponseEntity<RequestAttributeValue>updateRequestAttributeValue(@Valid RequestAttributeValue requestAttributeValue)PUT /request-attribute-values: Updates an existing requestAttributeValue.
-
-
-
Constructor Detail
-
RequestAttributeValueResource
public RequestAttributeValueResource(RequestAttributeValueService requestAttributeValueService)
-
-
Method Detail
-
createRequestAttributeValue
@PostMapping("/request-attribute-values") public org.springframework.http.ResponseEntity<RequestAttributeValue> createRequestAttributeValue(@Valid @RequestBody @Valid RequestAttributeValue requestAttributeValue) throws URISyntaxExceptionPOST /request-attribute-values: Create a new requestAttributeValue.- Parameters:
requestAttributeValue- the requestAttributeValue to create.- Returns:
- the
ResponseEntitywith status201 (Created)and with body the new requestAttributeValue, or with status400 (Bad Request)if the requestAttributeValue has already an ID. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
updateRequestAttributeValue
@PutMapping("/request-attribute-values") public org.springframework.http.ResponseEntity<RequestAttributeValue> updateRequestAttributeValue(@Valid @RequestBody @Valid RequestAttributeValue requestAttributeValue) throws URISyntaxExceptionPUT /request-attribute-values: Updates an existing requestAttributeValue.- Parameters:
requestAttributeValue- the requestAttributeValue to update.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the updated requestAttributeValue, or with status400 (Bad Request)if the requestAttributeValue is not valid, or with status500 (Internal Server Error)if the requestAttributeValue couldn't be updated. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
getAllRequestAttributeValues
@GetMapping("/request-attribute-values") public List<RequestAttributeValue> getAllRequestAttributeValues()GET /request-attribute-values: get all the requestAttributeValues.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of requestAttributeValues in body.
-
getRequestAttributeValue
@GetMapping("/request-attribute-values/{id}") public org.springframework.http.ResponseEntity<RequestAttributeValue> getRequestAttributeValue(@PathVariable Long id)GET /request-attribute-values/:id: get the "id" requestAttributeValue.- Parameters:
id- the id of the requestAttributeValue to retrieve.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the requestAttributeValue, or with status404 (Not Found).
-
deleteRequestAttributeValue
@DeleteMapping("/request-attribute-values/{id}") public org.springframework.http.ResponseEntity<Void> deleteRequestAttributeValue(@PathVariable Long id)DELETE /request-attribute-values/:id: delete the "id" requestAttributeValue.- Parameters:
id- the id of the requestAttributeValue to delete.- Returns:
- the
ResponseEntitywith status204 (NO_CONTENT).
-
-