Package de.trustable.ca3s.core.web.rest
Class PipelineResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.PipelineResource
-
-
Constructor Summary
Constructors Constructor Description PipelineResource(PipelineService pipelineService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Pipeline>createPipeline(@Valid Pipeline pipeline)POST /pipelines: Create a new pipeline.org.springframework.http.ResponseEntity<Void>deletePipeline(Long id)DELETE /pipelines/:id: delete the "id" pipeline.List<Pipeline>getAllPipelines()GET /pipelines: get all the pipelines.org.springframework.http.ResponseEntity<Pipeline>getPipeline(Long id)GET /pipelines/:id: get the "id" pipeline.org.springframework.http.ResponseEntity<Pipeline>updatePipeline(@Valid Pipeline pipeline)PUT /pipelines: Updates an existing pipeline.
-
-
-
Constructor Detail
-
PipelineResource
public PipelineResource(PipelineService pipelineService)
-
-
Method Detail
-
createPipeline
@PostMapping("/pipelines") public org.springframework.http.ResponseEntity<Pipeline> createPipeline(@Valid @RequestBody @Valid Pipeline pipeline) throws URISyntaxExceptionPOST /pipelines: Create a new pipeline.- Parameters:
pipeline- the pipeline to create.- Returns:
- the
ResponseEntitywith status201 (Created)and with body the new pipeline, or with status400 (Bad Request)if the pipeline has already an ID. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
updatePipeline
@PutMapping("/pipelines") public org.springframework.http.ResponseEntity<Pipeline> updatePipeline(@Valid @RequestBody @Valid Pipeline pipeline) throws URISyntaxExceptionPUT /pipelines: Updates an existing pipeline.- Parameters:
pipeline- the pipeline to update.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the updated pipeline, or with status400 (Bad Request)if the pipeline is not valid, or with status500 (Internal Server Error)if the pipeline couldn't be updated. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
getAllPipelines
@GetMapping("/pipelines") public List<Pipeline> getAllPipelines()GET /pipelines: get all the pipelines.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of pipelines in body.
-
getPipeline
@GetMapping("/pipelines/{id}") public org.springframework.http.ResponseEntity<Pipeline> getPipeline(@PathVariable Long id)GET /pipelines/:id: get the "id" pipeline.- Parameters:
id- the id of the pipeline to retrieve.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the pipeline, or with status404 (Not Found).
-
-