Class ClientApplicationsResource

java.lang.Object
io.goobi.viewer.api.rest.v1.clients.ClientApplicationsResource

@Path("/clients") public class ClientApplicationsResource extends Object
Author:
florian
  • Constructor Details

  • Method Details

    • register

      @POST @Path("/register") @Produces("application/json") public String register() throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, DAOException
      Throws:
      de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
      DAOException
    • request

      @GET @Path("/request") @Produces("application/json") public String request() throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, DAOException
      Throws:
      de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
      DAOException
    • setClient

      @PUT @Path("/{id}") @Produces("application/json") public ClientApplication setClient(@PathParam("id") String clientIdentifier, ClientApplication update) throws DAOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
      Change properties of an existing ClientApplication.
      Parameters:
      clientIdentifier -
      update -
      Returns:
      ClientApplication
      Throws:
      DAOException - If an error occurs accessing the database
      de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException - If no 'id' or 'clientIdentier' values are given or if no matching client could be found
    • getAllClients

      @GET @Produces("application/json") public List<ClientApplication> getAllClients() throws DAOException
      List all registered ClientApplications.
      Returns:
      All clients from the DB
      Throws:
      DAOException - If an error occurs accessing the database
    • getClient

      @GET @Path("/{id}") @Produces("application/json") public ClientApplication getClient(@PathParam("id") String clientIdentifier) throws DAOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
      List all registered ClientApplications.
      Parameters:
      clientIdentifier -
      Returns:
      Client with given clientIdentifier
      Throws:
      DAOException - If an error occurs accessing the database
      de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException