Class RestApi


  • @Path("v1")
    public class RestApi
    extends RestHelper
    • Constructor Detail

      • RestApi

        public RestApi()
    • 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)