Class BitstreamCategoryRestController


  • @RestController
    @RequestMapping("/api/core/bitstreams")
    public class BitstreamCategoryRestController
    extends Object
    REST controller for handling bulk updates to Bitstream resources.

    This controller is responsible for handling requests to the bitstream category, which allows for updating multiple bitstream resources in a single operation.

    Author:
    Jens Vannerum (jens.vannerum@atmire.com)
    • Constructor Detail

      • BitstreamCategoryRestController

        public BitstreamCategoryRestController()
    • Method Detail

      • patch

        @RequestMapping(method=PATCH)
        public org.springframework.http.ResponseEntity<org.springframework.hateoas.RepresentationModel<?>> patch​(javax.servlet.http.HttpServletRequest request,
                                                                                                                 @RequestBody(required=true)
                                                                                                                 com.fasterxml.jackson.databind.JsonNode jsonNode)
                                                                                                          throws SQLException,
                                                                                                                 AuthorizeException
        Handles PATCH requests to the bitstream category for bulk updates of bitstream resources.
        Parameters:
        request - the HTTP request object.
        jsonNode - the JSON representation of the bulk update operation, containing the updates to be applied.
        Returns:
        a ResponseEntity representing the HTTP response to be sent back to the client, in this case, a HTTP 204 No Content response since currently only a delete operation is supported.
        Throws:
        SQLException - if an error occurs while accessing the database.
        AuthorizeException - if the user is not authorized to perform the requested operation.