@Path(value="v1") public class RestApi extends RestHelper
Constructor and Description |
---|
RestApi() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createArchive(String userPath,
Archive archive,
String userJson) |
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 |
createArchiveEntry(String archiveId,
String userPath,
String userJson,
List<FetchRequest> requestList) |
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) |
buildErrorResponse, buildResponse, buildTextErrorResponse
@GET @Path(value="/heartbeat") @Produces(value="text/plain") public javax.ws.rs.core.Response heartbeat(@CookieParam(value="combinearchiveweba") String userPath, @CookieParam(value="combinearchivewebuser") String userJson, @CookieParam(value="combinearchivewebhist") String historyCookie)
@GET @Path(value="/heartbeat/{user_path}") @Produces(value="text/plain") public javax.ws.rs.core.Response heartbeatSetPath(@PathParam(value="user_path") String userPath)
@GET @Path(value="/store_settings") @Produces(value="text/plain") public javax.ws.rs.core.Response storeSettings(@CookieParam(value="combinearchiveweba") String userPath, @CookieParam(value="combinearchivewebuser") String userJson)
@GET @Path(value="/stats") @Produces(value="application/json") public javax.ws.rs.core.Response getStats(@CookieParam(value="combinearchiveweba") String userPath, @QueryParam(value="secret") String secret)
@GET @Path(value="/workspaces") @Produces(value="application/json") public javax.ws.rs.core.Response getWorkspaces(@CookieParam(value="combinearchiveweba") String userPath, @CookieParam(value="combinearchivewebhist") String historyCookie)
@GET @Path(value="/workspaces/{workspace_id}") @Produces(value="application/json") public javax.ws.rs.core.Response getSingleWorkspace(@CookieParam(value="combinearchiveweba") String userPath, @CookieParam(value="combinearchivewebhist") String historyCookie, @PathParam(value="workspace_id") String requestedWorkspace)
@PUT @Path(value="/workspaces/{workspace_id}") @Produces(value="application/json") public javax.ws.rs.core.Response updateWorkspace(@CookieParam(value="combinearchiveweba") String userPath, @CookieParam(value="combinearchivewebhist") String historyCookie, @PathParam(value="workspace_id") String workspaceId, Workspace workspace)
@DELETE @Path(value="/workspaces/{workspace_id}") @Produces(value="text/plain") public javax.ws.rs.core.Response deleteWorkspace(@CookieParam(value="combinearchiveweba") String userPath, @CookieParam(value="combinearchivewebhist") String historyCookie, @PathParam(value="workspace_id") String workspaceId)
@GET @Path(value="/vcard") @Produces(value="application/json") public javax.ws.rs.core.Response getOwnVcard(@CookieParam(value="combinearchiveweba") String userPath, @CookieParam(value="combinearchivewebuser") String userJson)
@POST @Path(value="/vcard") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response updateOwnVcard(@CookieParam(value="combinearchiveweba") String userPath, UserData data)
@GET @Path(value="/archives") @Produces(value="application/json") public javax.ws.rs.core.Response getAllArchives(@CookieParam(value="combinearchiveweba") String userPath)
@GET @Path(value="/archives/{archive_id}") @Produces(value="application/json") public javax.ws.rs.core.Response getArchive(@PathParam(value="archive_id") String id, @CookieParam(value="combinearchiveweba") String userPath)
@PUT @Path(value="/archives/{archive_id}") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response updateArchive(@PathParam(value="archive_id") String id, @CookieParam(value="combinearchiveweba") String userPath, Archive archive)
@POST @Path(value="/archives") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createArchive(@CookieParam(value="combinearchiveweba") String userPath, Archive archive, @CookieParam(value="combinearchivewebuser") String userJson)
@POST @Path(value="/archives") @Produces(value="application/json") @Consumes(value="multipart/form-data") public javax.ws.rs.core.Response createArchiveFromMultipart(@CookieParam(value="combinearchiveweba") String userPath, @CookieParam(value="combinearchivewebuser") String userJson, String serializedArchive, org.glassfish.jersey.media.multipart.FormDataBodyPart file)
@DELETE @Path(value="/archives/{archive_id}") @Produces(value="text/plain") public javax.ws.rs.core.Response deleteArchive(@PathParam(value="archive_id") String id, @CookieParam(value="combinearchiveweba") String userPath)
@GET @Path(value="/archives/{archive_id}/entries") @Produces(value="application/json") public javax.ws.rs.core.Response getAllArchiveEntries(@PathParam(value="archive_id") String archiveId, @CookieParam(value="combinearchiveweba") String userPath)
@GET @Path(value="/archives/{archive_id}/entries/{entry_id}") @Produces(value="application/json") public javax.ws.rs.core.Response getArchiveEntry(@PathParam(value="archive_id") String archiveId, @PathParam(value="entry_id") String entryId, @CookieParam(value="combinearchiveweba") String userPath)
@PUT @Path(value="/archives/{archive_id}/entries/{entry_id}") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response updateArchiveEntry(@PathParam(value="archive_id") String archiveId, @PathParam(value="entry_id") String entryId, ArchiveEntryDataholder newEntry, @CookieParam(value="combinearchiveweba") String userPath)
@POST @Path(value="/archives/{archive_id}/entries") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createArchiveEntry(@PathParam(value="archive_id") String archiveId, @CookieParam(value="combinearchiveweba") String userPath, @CookieParam(value="combinearchivewebuser") String userJson, List<FetchRequest> requestList)
@POST @Path(value="/archives/{archive_id}/entries") @Produces(value="application/json") @Consumes(value="multipart/form-data") public javax.ws.rs.core.Response createArchiveEntry(@PathParam(value="archive_id") String archiveId, @CookieParam(value="combinearchiveweba") String userPath, List<org.glassfish.jersey.media.multipart.FormDataBodyPart> files, String optionString, String path, @CookieParam(value="combinearchivewebuser") String userJson)
@DELETE @Path(value="/archives/{archive_id}/entries/{entry_id}") @Produces(value="text/plain") public javax.ws.rs.core.Response deleteArchiveEntry(@PathParam(value="archive_id") String archiveId, @PathParam(value="entry_id") String entryId, @CookieParam(value="combinearchiveweba") String userPath)
@GET @Path(value="/archives/{archive_id}/entries/{entry_id}/meta") @Produces(value="application/json") public javax.ws.rs.core.Response getAllMetaObjects(@PathParam(value="archive_id") String archiveId, @PathParam(value="entry_id") String entryId, @CookieParam(value="combinearchiveweba") String userPath)
@GET @Path(value="/archives/{archive_id}/entries/{entry_id}/meta/{meta_id}") @Produces(value="application/json") public javax.ws.rs.core.Response getMetaObject(@PathParam(value="archive_id") String archiveId, @PathParam(value="entry_id") String entryId, @PathParam(value="meta_id") String metaId, @CookieParam(value="combinearchiveweba") String userPath)
@PUT @Path(value="/archives/{archive_id}/entries/{entry_id}/meta/{meta_id}") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response updateMetaObject(@PathParam(value="archive_id") String archiveId, @PathParam(value="entry_id") String entryId, @PathParam(value="meta_id") String metaId, @CookieParam(value="combinearchiveweba") String userPath, MetaObjectDataholder metaObject)
@POST @Path(value="/archives/{archive_id}/entries/{entry_id}/meta") @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createMetaObject(@PathParam(value="archive_id") String archiveId, @PathParam(value="entry_id") String entryId, @CookieParam(value="combinearchiveweba") String userPath, MetaObjectDataholder metaObject)
@DELETE @Path(value="/archives/{archive_id}/entries/{entry_id}/meta/{meta_id}") @Produces(value="text/plain") public javax.ws.rs.core.Response deleteMetaObject(@PathParam(value="archive_id") String archiveId, @PathParam(value="entry_id") String entryId, @PathParam(value="meta_id") String metaId, @CookieParam(value="combinearchiveweba") String userPath)
Copyright © 2018 SEMS project @ University of Rostock. All rights reserved.