Class ClientApplicationsResource
java.lang.Object
io.goobi.viewer.api.rest.v1.clients.ClientApplicationsResource
- Author:
- florian
-
Constructor Summary
ConstructorDescriptionClientApplicationsResource
(IDAO dao, ClientApplicationManager clientManager) -
Method Summary
Modifier and TypeMethodDescriptionList all registeredClientApplication
s.List all registeredClientApplication
s.register()
request()
setClient
(String clientIdentifier, ClientApplication update) Change properties of an existingClientApplication
.
-
Constructor Details
-
ClientApplicationsResource
- Throws:
DAOException
-
ClientApplicationsResource
-
-
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 existingClientApplication
.- Parameters:
clientIdentifier
-update
-- Returns:
ClientApplication
- Throws:
DAOException
- If an error occurs accessing the databasede.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 DAOExceptionList all registeredClientApplication
s.- 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 registeredClientApplication
s.- Parameters:
clientIdentifier
-- Returns:
- Client with given clientIdentifier
- Throws:
DAOException
- If an error occurs accessing the databasede.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
-