Interface AttrRepoService

    • Method Detail

      • read

        @GET
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        AttrRepoTO read​(@NotNull @PathParam("key")
                        @NotNull String key)
        Returns the attribute repository matching the given key.
        Parameters:
        key - key of requested attribute repository
        Returns:
        attribute repository with matching id
      • list

        @GET
        @Produces({"application/json","application/yaml","application/xml"})
        List<AttrRepoTO> list()
        Returns a list of attribute repositories.
        Returns:
        list of attribute repositories
      • create

        @POST
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response create​(@NotNull
                                         @NotNull AttrRepoTO attrRepoTO)
        Create a new attribute repository.
        Parameters:
        attrRepoTO - AttrRepo to be created.
        Returns:
        Response object featuring Location header of created attribute repository
      • update

        @PUT
        @Path("{key}")
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        void update​(@NotNull
                    @NotNull AttrRepoTO attrRepoTO)
        Updates attribute repository matching the given key.
        Parameters:
        attrRepoTO - AttrRepo to replace existing attribute repository
      • delete

        @DELETE
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        void delete​(@NotNull @PathParam("key")
                    @NotNull String key)
        Delete attribute repository matching the given key.
        Parameters:
        key - key of attribute repository to be deleted