Class PipelineAttributeResource


  • @RestController
    @RequestMapping("/api")
    public class PipelineAttributeResource
    extends Object
    REST controller for managing PipelineAttribute.
    • Constructor Detail

    • Method Detail

      • createPipelineAttribute

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

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

        @GetMapping("/pipeline-attributes")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public List<PipelineAttribute> getAllPipelineAttributes()
        GET /pipeline-attributes : get all the pipelineAttributes.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of pipelineAttributes in body.
      • getPipelineAttribute

        @GetMapping("/pipeline-attributes/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        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 ResponseEntity with status 200 (OK) and with body the pipelineAttribute, or with status 404 (Not Found).
      • deletePipelineAttribute

        @DeleteMapping("/pipeline-attributes/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        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 ResponseEntity with status 204 (NO_CONTENT).