@RestController @RequestMapping(value="/api/core/relationships") public class RelationshipRestController extends Object
| Constructor and Description |
|---|
RelationshipRestController() |
| Modifier and Type | Method and Description |
|---|---|
RelationshipResourceWrapper |
retrieveByLabel(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
String label,
String dsoId,
org.springframework.data.domain.Pageable pageable)
This method will retrieve all the Relationships that have a RelationshipType which has a left or right label
equal to the one passed along in the pathvariable.
|
@RequestMapping(method=GET,
value="/{label:^(?!^\\d+$)(?!^[0-9a-fxA-FX]{8}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{12}$)[\\w+\\-]+$+}")
public RelationshipResourceWrapper retrieveByLabel(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
@PathVariable
String label,
@RequestParam(name="dso",required=false)
String dsoId,
org.springframework.data.domain.Pageable pageable)
throws Exception
response - The response objectrequest - The request objectlabel - The label on which the Relationship's RelationshipType will be matcheddsoId - The ID of the dso on which we'll search for relationships if applicablepageable - The page objectException - If something goes wrongCopyright © 2019 DuraSpace. All rights reserved.