Package org.dspace.app.rest
Class BitstreamCategoryRestController
- java.lang.Object
-
- org.dspace.app.rest.BitstreamCategoryRestController
-
@RestController @RequestMapping("/api/core/bitstreams") public class BitstreamCategoryRestController extends ObjectREST 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 Summary
Constructors Constructor Description BitstreamCategoryRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<org.springframework.hateoas.RepresentationModel<?>>patch(javax.servlet.http.HttpServletRequest request, com.fasterxml.jackson.databind.JsonNode jsonNode)Handles PATCH requests to the bitstream category for bulk updates of bitstream resources.
-
-
-
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, AuthorizeExceptionHandles 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.
-
-