Class RestApi
- java.lang.Object
-
- javax.ws.rs.core.Application
-
- de.unirostock.sems.cbarchive.web.rest.RestHelper
-
- de.unirostock.sems.cbarchive.web.rest.RestApi
-
@Path("v1") public class RestApi extends RestHelper
-
-
Constructor Summary
Constructors Constructor Description RestApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createArchive(String userPath, Archive archive, String userJson)
javax.ws.rs.core.Response
createArchiveEntry(String archiveId, String userPath, String userJson, List<FetchRequest> requestList)
javax.ws.rs.core.Response
createArchiveEntry(String archiveId, String userPath, List<org.glassfish.jersey.media.multipart.FormDataBodyPart> files, String optionString, String path, String userJson)
javax.ws.rs.core.Response
createArchiveFromMultipart(String userPath, String userJson, String serializedArchive, org.glassfish.jersey.media.multipart.FormDataBodyPart file)
javax.ws.rs.core.Response
createMetaObject(String archiveId, String entryId, String userPath, MetaObjectDataholder metaObject)
javax.ws.rs.core.Response
deleteArchive(String id, String userPath)
javax.ws.rs.core.Response
deleteArchiveEntry(String archiveId, String entryId, String userPath)
javax.ws.rs.core.Response
deleteMetaObject(String archiveId, String entryId, String metaId, String userPath)
javax.ws.rs.core.Response
deleteWorkspace(String userPath, String historyCookie, String workspaceId)
javax.ws.rs.core.Response
getAllArchiveEntries(String archiveId, String userPath)
javax.ws.rs.core.Response
getAllArchives(String userPath)
javax.ws.rs.core.Response
getAllMetaObjects(String archiveId, String entryId, String userPath)
javax.ws.rs.core.Response
getArchive(String id, String userPath)
javax.ws.rs.core.Response
getArchiveEntry(String archiveId, String entryId, String userPath)
javax.ws.rs.core.Response
getMetaObject(String archiveId, String entryId, String metaId, String userPath)
javax.ws.rs.core.Response
getOwnVcard(String userPath, String userJson)
javax.ws.rs.core.Response
getSingleWorkspace(String userPath, String historyCookie, String requestedWorkspace)
javax.ws.rs.core.Response
getStats(String userPath, String secret)
javax.ws.rs.core.Response
getWorkspaces(String userPath, String historyCookie)
javax.ws.rs.core.Response
heartbeat(String userPath, String userJson, String historyCookie)
javax.ws.rs.core.Response
heartbeatSetPath(String userPath)
javax.ws.rs.core.Response
storeSettings(String userPath, String userJson)
javax.ws.rs.core.Response
updateArchive(String id, String userPath, Archive archive)
javax.ws.rs.core.Response
updateArchiveEntry(String archiveId, String entryId, ArchiveEntryDataholder newEntry, String userPath)
javax.ws.rs.core.Response
updateMetaObject(String archiveId, String entryId, String metaId, String userPath, MetaObjectDataholder metaObject)
javax.ws.rs.core.Response
updateOwnVcard(String userPath, UserData data)
javax.ws.rs.core.Response
updateWorkspace(String userPath, String historyCookie, String workspaceId, Workspace workspace)
-
Methods inherited from class de.unirostock.sems.cbarchive.web.rest.RestHelper
buildErrorResponse, buildResponse, buildTextErrorResponse
-
-
-
-
Method Detail
-
heartbeat
@GET @Path("/heartbeat") @Produces("text/plain") public javax.ws.rs.core.Response heartbeat(@CookieParam("combinearchiveweba") String userPath, @CookieParam("combinearchivewebuser") String userJson, @CookieParam("combinearchivewebhist") String historyCookie)
-
heartbeatSetPath
@GET @Path("/heartbeat/{user_path}") @Produces("text/plain") public javax.ws.rs.core.Response heartbeatSetPath(@PathParam("user_path") String userPath)
-
storeSettings
@GET @Path("/store_settings") @Produces("text/plain") public javax.ws.rs.core.Response storeSettings(@CookieParam("combinearchiveweba") String userPath, @CookieParam("combinearchivewebuser") String userJson)
-
getStats
@GET @Path("/stats") @Produces("application/json") public javax.ws.rs.core.Response getStats(@CookieParam("combinearchiveweba") String userPath, @QueryParam("secret") String secret)
-
getWorkspaces
@GET @Path("/workspaces") @Produces("application/json") public javax.ws.rs.core.Response getWorkspaces(@CookieParam("combinearchiveweba") String userPath, @CookieParam("combinearchivewebhist") String historyCookie)
-
getSingleWorkspace
@GET @Path("/workspaces/{workspace_id}") @Produces("application/json") public javax.ws.rs.core.Response getSingleWorkspace(@CookieParam("combinearchiveweba") String userPath, @CookieParam("combinearchivewebhist") String historyCookie, @PathParam("workspace_id") String requestedWorkspace)
-
updateWorkspace
@PUT @Path("/workspaces/{workspace_id}") @Produces("application/json") public javax.ws.rs.core.Response updateWorkspace(@CookieParam("combinearchiveweba") String userPath, @CookieParam("combinearchivewebhist") String historyCookie, @PathParam("workspace_id") String workspaceId, Workspace workspace)
-
deleteWorkspace
@DELETE @Path("/workspaces/{workspace_id}") @Produces("text/plain") public javax.ws.rs.core.Response deleteWorkspace(@CookieParam("combinearchiveweba") String userPath, @CookieParam("combinearchivewebhist") String historyCookie, @PathParam("workspace_id") String workspaceId)
-
getOwnVcard
@GET @Path("/vcard") @Produces("application/json") public javax.ws.rs.core.Response getOwnVcard(@CookieParam("combinearchiveweba") String userPath, @CookieParam("combinearchivewebuser") String userJson)
-
updateOwnVcard
@POST @Path("/vcard") @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response updateOwnVcard(@CookieParam("combinearchiveweba") String userPath, UserData data)
-
getAllArchives
@GET @Path("/archives") @Produces("application/json") public javax.ws.rs.core.Response getAllArchives(@CookieParam("combinearchiveweba") String userPath)
-
getArchive
@GET @Path("/archives/{archive_id}") @Produces("application/json") public javax.ws.rs.core.Response getArchive(@PathParam("archive_id") String id, @CookieParam("combinearchiveweba") String userPath)
-
updateArchive
@PUT @Path("/archives/{archive_id}") @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response updateArchive(@PathParam("archive_id") String id, @CookieParam("combinearchiveweba") String userPath, Archive archive)
-
createArchive
@POST @Path("/archives") @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response createArchive(@CookieParam("combinearchiveweba") String userPath, Archive archive, @CookieParam("combinearchivewebuser") String userJson)
-
createArchiveFromMultipart
@POST @Path("/archives") @Produces("application/json") @Consumes("multipart/form-data") public javax.ws.rs.core.Response createArchiveFromMultipart(@CookieParam("combinearchiveweba") String userPath, @CookieParam("combinearchivewebuser") String userJson, String serializedArchive, org.glassfish.jersey.media.multipart.FormDataBodyPart file)
-
deleteArchive
@DELETE @Path("/archives/{archive_id}") @Produces("text/plain") public javax.ws.rs.core.Response deleteArchive(@PathParam("archive_id") String id, @CookieParam("combinearchiveweba") String userPath)
-
getAllArchiveEntries
@GET @Path("/archives/{archive_id}/entries") @Produces("application/json") public javax.ws.rs.core.Response getAllArchiveEntries(@PathParam("archive_id") String archiveId, @CookieParam("combinearchiveweba") String userPath)
-
getArchiveEntry
@GET @Path("/archives/{archive_id}/entries/{entry_id}") @Produces("application/json") public javax.ws.rs.core.Response getArchiveEntry(@PathParam("archive_id") String archiveId, @PathParam("entry_id") String entryId, @CookieParam("combinearchiveweba") String userPath)
-
updateArchiveEntry
@PUT @Path("/archives/{archive_id}/entries/{entry_id}") @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response updateArchiveEntry(@PathParam("archive_id") String archiveId, @PathParam("entry_id") String entryId, ArchiveEntryDataholder newEntry, @CookieParam("combinearchiveweba") String userPath)
-
createArchiveEntry
@POST @Path("/archives/{archive_id}/entries") @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response createArchiveEntry(@PathParam("archive_id") String archiveId, @CookieParam("combinearchiveweba") String userPath, @CookieParam("combinearchivewebuser") String userJson, List<FetchRequest> requestList)
-
createArchiveEntry
@POST @Path("/archives/{archive_id}/entries") @Produces("application/json") @Consumes("multipart/form-data") public javax.ws.rs.core.Response createArchiveEntry(@PathParam("archive_id") String archiveId, @CookieParam("combinearchiveweba") String userPath, List<org.glassfish.jersey.media.multipart.FormDataBodyPart> files, String optionString, String path, @CookieParam("combinearchivewebuser") String userJson)
-
deleteArchiveEntry
@DELETE @Path("/archives/{archive_id}/entries/{entry_id}") @Produces("text/plain") public javax.ws.rs.core.Response deleteArchiveEntry(@PathParam("archive_id") String archiveId, @PathParam("entry_id") String entryId, @CookieParam("combinearchiveweba") String userPath)
-
getAllMetaObjects
@GET @Path("/archives/{archive_id}/entries/{entry_id}/meta") @Produces("application/json") public javax.ws.rs.core.Response getAllMetaObjects(@PathParam("archive_id") String archiveId, @PathParam("entry_id") String entryId, @CookieParam("combinearchiveweba") String userPath)
-
getMetaObject
@GET @Path("/archives/{archive_id}/entries/{entry_id}/meta/{meta_id}") @Produces("application/json") public javax.ws.rs.core.Response getMetaObject(@PathParam("archive_id") String archiveId, @PathParam("entry_id") String entryId, @PathParam("meta_id") String metaId, @CookieParam("combinearchiveweba") String userPath)
-
updateMetaObject
@PUT @Path("/archives/{archive_id}/entries/{entry_id}/meta/{meta_id}") @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response updateMetaObject(@PathParam("archive_id") String archiveId, @PathParam("entry_id") String entryId, @PathParam("meta_id") String metaId, @CookieParam("combinearchiveweba") String userPath, MetaObjectDataholder metaObject)
-
createMetaObject
@POST @Path("/archives/{archive_id}/entries/{entry_id}/meta") @Produces("application/json") @Consumes("application/json") public javax.ws.rs.core.Response createMetaObject(@PathParam("archive_id") String archiveId, @PathParam("entry_id") String entryId, @CookieParam("combinearchiveweba") String userPath, MetaObjectDataholder metaObject)
-
deleteMetaObject
@DELETE @Path("/archives/{archive_id}/entries/{entry_id}/meta/{meta_id}") @Produces("text/plain") public javax.ws.rs.core.Response deleteMetaObject(@PathParam("archive_id") String archiveId, @PathParam("entry_id") String entryId, @PathParam("meta_id") String metaId, @CookieParam("combinearchiveweba") String userPath)
-
-