Package org.dspace.app.rest
Class RelationshipRestController
- java.lang.Object
-
- org.dspace.app.rest.RelationshipRestController
-
@RestController @RequestMapping("/api/core/relationships") public class RelationshipRestController extends ObjectThis will be the entry point for the api/core/relationships endpoint with additional paths to it
-
-
Constructor Summary
Constructors Constructor Description RelationshipRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelationshipRestupdateRelationshipLeft(Integer id, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)Method to change the left item of a relationship with a given item in the bodyRelationshipRestupdateRelationshipRight(Integer id, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)Method to change the right item of a relationship with a given item in the body
-
-
-
Method Detail
-
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 SQLExceptionMethod 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 SQLExceptionMethod to change the right item of a relationship with a given item in the body- Returns:
- The modified relationship
- Throws:
SQLException
-
-