Interface RelationshipTypeService

  • All Superinterfaces:
    JAXRSService

    @Path("relationshipTypes")
    public interface RelationshipTypeService
    extends JAXRSService
    REST operations for relationship types.
    • Method Detail

      • list

        @GET
        @Produces({"application/json","application/yaml","application/xml"})
        List<org.apache.syncope.common.lib.to.RelationshipTypeTO> list()
        Returns a list of all relationshipTypes.
        Returns:
        list of all relationshipTypes.
      • read

        @GET
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        org.apache.syncope.common.lib.to.RelationshipTypeTO read​(@NotNull @PathParam("key")
                                                                 @NotNull String key)
        Returns relationshipType with matching key.
        Parameters:
        key - relationshipType key to be read
        Returns:
        relationshipType with matching key
      • create

        @POST
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response create​(@NotNull
                                         @NotNull org.apache.syncope.common.lib.to.RelationshipTypeTO relationshipTypeTO)
        Creates a new relationshipType.
        Parameters:
        relationshipTypeTO - relationshipType to be created
        Returns:
        Response object featuring Location header of created relationshipType
      • update

        @PUT
        @Path("{key}")
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        void update​(@NotNull
                    @NotNull org.apache.syncope.common.lib.to.RelationshipTypeTO relationshipTypeTO)
        Updates the relationshipType matching the provided key.
        Parameters:
        relationshipTypeTO - relationshipType to be stored
      • delete

        @DELETE
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        void delete​(@NotNull @PathParam("key")
                    @NotNull String key)
        Deletes the relationshipType matching the provided key.
        Parameters:
        key - relationshipType key to be deleted