Class PipelineViewResource


  • @RestController
    @Transactional
    @RequestMapping("/api")
    public class PipelineViewResource
    extends Object
    REST controller for managing Pipeline.
    • Method Detail

      • createPipeline

        @PostMapping("/pipelineViews")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<PipelineView> createPipeline​(@Valid @RequestBody
                                                                                    @Valid PipelineView pipelineView)
                                                                             throws URISyntaxException
        POST /pipelineViews : Create a new pipeline.
        Parameters:
        pipelineView - the pipeline to create.
        Returns:
        the ResponseEntity with status 201 (Created) and with body the new pipeline, or with status 400 (Bad Request) if the pipeline has already an ID.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • updatePipeline

        @PutMapping("/pipelineViews")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<PipelineView> updatePipeline​(@Valid @RequestBody
                                                                                    @Valid PipelineView pipelineView)
                                                                             throws URISyntaxException
        PUT /pipelineViews : Updates an existing pipeline.
        Parameters:
        pipelineView - the pipeline to update.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the updated pipeline, or with status 400 (Bad Request) if the pipeline is not valid, or with status 500 (Internal Server Error) if the pipeline couldn't be updated.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • getAllPipelines

        @GetMapping("/pipelineViews")
        public List<PipelineView> getAllPipelines()
        GET /pipelineViews : get all the pipelines.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of pipelines in body.
      • getPipeline

        @GetMapping("/pipelineViews/{id}")
        public org.springframework.http.ResponseEntity<PipelineView> getPipeline​(@PathVariable
                                                                                 Long id)
        GET /pipelineViews/:id : get the "id" pipeline.
        Parameters:
        id - the id of the pipeline to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the pipeline, or with status 404 (Not Found).
      • deletePipeline

        @DeleteMapping("/pipelineViews/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<Void> deletePipeline​(@PathVariable
                                                                            Long id)
        DELETE /pipelines/:id : delete the "id" pipeline.
        Parameters:
        id - the id of the pipeline to delete.
        Returns:
        the ResponseEntity with status 204 (NO_CONTENT).