Class RelationshipTypeRestController


  • @RestController
    @RequestMapping("/api/core/entitytypes/{id}/relationshiptypes")
    public class RelationshipTypeRestController
    extends Object
    This 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 Detail

      • RelationshipTypeRestController

        public RelationshipTypeRestController()
    • 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 RelationshipTypes
        response - The response object
        request - The request object
        pageable - The pagination object
        assembler - The assembler object
        Returns:
        The wrapped resource containing the list of RelationshipType objects as defined above
        Throws:
        SQLException - If something goes wrong