Class RelationshipRestController

java.lang.Object
org.dspace.app.rest.RelationshipRestController

@RestController @RequestMapping("/api/core/relationships") public class RelationshipRestController extends Object
This will be the entry point for the api/core/relationships endpoint with additional paths to it
  • Constructor Details

    • RelationshipRestController

      public RelationshipRestController()
  • Method Details

    • updateRelationshipLeft

      @RequestMapping(method=PUT, value="/{id:\\d+}/leftItem", consumes="text/uri-list") public RelationshipRest updateRelationshipLeft(@PathVariable Integer id, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws SQLException
      Method to change the left item of a relationship with a given item in the body
      Returns:
      The modified relationship
      Throws:
      SQLException
    • updateRelationshipRight

      @RequestMapping(method=PUT, value="/{id:\\d+}/rightItem", consumes="text/uri-list") public RelationshipRest updateRelationshipRight(@PathVariable Integer id, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws SQLException
      Method to change the right item of a relationship with a given item in the body
      Returns:
      The modified relationship
      Throws:
      SQLException