@Path("v1")
public class RestApi
extends RestHelper
| Constructor | Description |
|---|---|
RestApi() |
| 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildErrorResponse, buildResponse, buildTextErrorResponse@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)
@GET
@Path("/heartbeat/{user_path}")
@Produces("text/plain")
public javax.ws.rs.core.Response heartbeatSetPath(@PathParam("user_path")
String userPath)
@GET
@Path("/store_settings")
@Produces("text/plain")
public javax.ws.rs.core.Response storeSettings(@CookieParam("combinearchiveweba")
String userPath,
@CookieParam("combinearchivewebuser")
String userJson)
@GET
@Path("/stats")
@Produces("application/json")
public javax.ws.rs.core.Response getStats(@CookieParam("combinearchiveweba")
String userPath,
@QueryParam("secret")
String secret)
@GET
@Path("/workspaces")
@Produces("application/json")
public javax.ws.rs.core.Response getWorkspaces(@CookieParam("combinearchiveweba")
String userPath,
@CookieParam("combinearchivewebhist")
String historyCookie)
@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)
@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)
@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)
@GET
@Path("/vcard")
@Produces("application/json")
public javax.ws.rs.core.Response getOwnVcard(@CookieParam("combinearchiveweba")
String userPath,
@CookieParam("combinearchivewebuser")
String userJson)
@POST
@Path("/vcard")
@Produces("application/json")
@Consumes("application/json")
public javax.ws.rs.core.Response updateOwnVcard(@CookieParam("combinearchiveweba")
String userPath,
UserData data)
@GET
@Path("/archives")
@Produces("application/json")
public javax.ws.rs.core.Response getAllArchives(@CookieParam("combinearchiveweba")
String userPath)
@GET
@Path("/archives/{archive_id}")
@Produces("application/json")
public javax.ws.rs.core.Response getArchive(@PathParam("archive_id")
String id,
@CookieParam("combinearchiveweba")
String userPath)
@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)
@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)
@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)
@DELETE
@Path("/archives/{archive_id}")
@Produces("text/plain")
public javax.ws.rs.core.Response deleteArchive(@PathParam("archive_id")
String id,
@CookieParam("combinearchiveweba")
String userPath)
@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)
@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)
@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)
@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)
@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)
@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)
@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)
@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)
@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)
@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)
@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)
Copyright © 2018 SEMS project @ University of Rostock. All rights reserved.