Class RDNAttributeResource


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

      • RDNAttributeResource

        public RDNAttributeResource​(RDNAttributeService rDNAttributeService)
    • Method Detail

      • createRDNAttribute

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

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

        @GetMapping("/rdn-attributes")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public List<RDNAttribute> getAllRDNAttributes()
        GET /rdn-attributes : get all the rDNAttributes.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of rDNAttributes in body.
      • getRDNAttribute

        @GetMapping("/rdn-attributes/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<RDNAttribute> getRDNAttribute​(@PathVariable
                                                                                     Long id)
        GET /rdn-attributes/:id : get the "id" rDNAttribute.
        Parameters:
        id - the id of the rDNAttribute to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the rDNAttribute, or with status 404 (Not Found).
      • deleteRDNAttribute

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