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