Package org.dspace.app.rest
Class RelationshipTypeRestController
- java.lang.Object
-
- org.dspace.app.rest.RelationshipTypeRestController
-
@RestController @RequestMapping("/api/core/entitytypes/{id}/relationshiptypes") public class RelationshipTypeRestController extends ObjectThis controller will handle all the incoming calls on the api/core/entitytypes/{id}/relationshiptypes endpoint where the id parameter can be filled in to match a specific entityType and then get all the relationshipTypes for the given EntityType
-
-
Constructor Summary
Constructors Constructor Description RelationshipTypeRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.hateoas.PagedModel<RelationshipTypeResource>retrieve(Integer id, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler assembler)This method will retrieve all the RelationshipTypes that conform to the given EntityType by the given ID and it will return this in a wrapped resource.
-
-
-
Method Detail
-
retrieve
@RequestMapping(method=GET) public org.springframework.hateoas.PagedModel<RelationshipTypeResource> retrieve(@PathVariable Integer id, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler assembler) throws SQLException
This method will retrieve all the RelationshipTypes that conform to the given EntityType by the given ID and it will return this in a wrapped resource.- Parameters:
id- The ID of the EntityType objects that we'll use to retrieve the RelationshipTypesresponse- The response objectrequest- The request objectpageable- The pagination objectassembler- The assembler object- Returns:
- The wrapped resource containing the list of RelationshipType objects as defined above
- Throws:
SQLException- If something goes wrong
-
-