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.ResponsecreateArchive(String userPath, Archive archive, String userJson)javax.ws.rs.core.ResponsecreateArchiveEntry(String archiveId, String userPath, String userJson, List<FetchRequest> requestList)javax.ws.rs.core.ResponsecreateArchiveEntry(String archiveId, String userPath, List<org.glassfish.jersey.media.multipart.FormDataBodyPart> files, String optionString, String path, String userJson)javax.ws.rs.core.ResponsecreateArchiveFromMultipart(String userPath, String userJson, String serializedArchive, org.glassfish.jersey.media.multipart.FormDataBodyPart file)javax.ws.rs.core.ResponsecreateMetaObject(String archiveId, String entryId, String userPath, MetaObjectDataholder metaObject)javax.ws.rs.core.ResponsedeleteArchive(String id, String userPath)javax.ws.rs.core.ResponsedeleteArchiveEntry(String archiveId, String entryId, String userPath)javax.ws.rs.core.ResponsedeleteMetaObject(String archiveId, String entryId, String metaId, String userPath)javax.ws.rs.core.ResponsedeleteWorkspace(String userPath, String historyCookie, String workspaceId)javax.ws.rs.core.ResponsegetAllArchiveEntries(String archiveId, String userPath)javax.ws.rs.core.ResponsegetAllArchives(String userPath)javax.ws.rs.core.ResponsegetAllMetaObjects(String archiveId, String entryId, String userPath)javax.ws.rs.core.ResponsegetArchive(String id, String userPath)javax.ws.rs.core.ResponsegetArchiveEntry(String archiveId, String entryId, String userPath)javax.ws.rs.core.ResponsegetMetaObject(String archiveId, String entryId, String metaId, String userPath)javax.ws.rs.core.ResponsegetOwnVcard(String userPath, String userJson)javax.ws.rs.core.ResponsegetSingleWorkspace(String userPath, String historyCookie, String requestedWorkspace)javax.ws.rs.core.ResponsegetStats(String userPath, String secret)javax.ws.rs.core.ResponsegetWorkspaces(String userPath, String historyCookie)javax.ws.rs.core.Responseheartbeat(String userPath, String userJson, String historyCookie)javax.ws.rs.core.ResponseheartbeatSetPath(String userPath)javax.ws.rs.core.ResponsestoreSettings(String userPath, String userJson)javax.ws.rs.core.ResponseupdateArchive(String id, String userPath, Archive archive)javax.ws.rs.core.ResponseupdateArchiveEntry(String archiveId, String entryId, ArchiveEntryDataholder newEntry, String userPath)javax.ws.rs.core.ResponseupdateMetaObject(String archiveId, String entryId, String metaId, String userPath, MetaObjectDataholder metaObject)javax.ws.rs.core.ResponseupdateOwnVcard(String userPath, UserData data)javax.ws.rs.core.ResponseupdateWorkspace(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)
-
-