Interface ImplementationService

    • Method Detail

      • list

        @GET
        @Path("{type}")
        @Produces({"application/json","application/yaml","application/xml"})
        List<ImplementationTO> list​(@NotNull @PathParam("type")
                                    @NotNull String type)
        Returns a list of all implementations of the given type.
        Parameters:
        type - implementation type
        Returns:
        list of all implementations.
      • read

        @GET
        @Path("{type}/{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        ImplementationTO read​(@NotNull @PathParam("type")
                              @NotNull String type,
                              @NotNull @PathParam("key")
                              @NotNull String key)
        Returns implementation with matching type and key.
        Parameters:
        type - implementation type
        key - key of implementation to be read
        Returns:
        implementation with matching key
      • create

        @POST
        @Path("{type}/{key}")
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response create​(@NotNull
                                         @NotNull ImplementationTO implementationTO)
        Creates a new implementation.
        Parameters:
        implementationTO - implementation.
        Returns:
        Response object featuring Location header of created implementation
      • update

        @PUT
        @Path("{type}/{key}")
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response update​(@NotNull
                                         @NotNull ImplementationTO implementationTO)
        Updates an existing implementation.
        Parameters:
        implementationTO - implementation.
        Returns:
        an empty response if operation was successful
      • delete

        @DELETE
        @Path("{type}/{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response delete​(@NotNull @PathParam("type")
                                         @NotNull String type,
                                         @NotNull @PathParam("key")
                                         @NotNull String key)
        Deletes the implementation matching the given key and type.
        Parameters:
        type - implementation type
        key - key for implementation to be deleted
        Returns:
        an empty response if operation was successful