@Path(value="/collections") public class CollectionResource extends RestResource
Available
Personal
Shared
Drafts
Deleted
Transferred
API_KEY_CLIENT_ID, API_KEY_TOKEN, API_KEY_USER, apiClientId, apiToken, apiUser, AUTHENTICATION_PARAM_NAME, hmacHeader, querySessionId, REMOTE_USER_ID, REMOTE_USER_TOKEN, remoteUserId, remoteUserToken, request, sessionId, WOR_PARTNER_TOKEN, worPartnerToken
Constructor and Description |
---|
CollectionResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getCollectionFolder(CollectionType type,
long folderId)
Retrieves the specified collection type's folder
Since the folder is intended to be retrieved from a
specified resource's context, this may not always return a result
even the folder with the specified id exists
|
javax.ws.rs.core.Response |
getCollectionStats()
Retrieve the statistics (counts) of all the collections for the specified user
|
javax.ws.rs.core.Response |
getCollectionSubFolders(CollectionType type) |
javax.ws.rs.core.Response |
read(String collectionType,
int offset,
int limit,
String sort,
boolean asc,
String filter,
List<String> queryParam)
Retrieve entries by collection type using paging parameters, including a filter
|
addHeaders, getThisServer, getUserId, getUserId, getWebPartner, log, requireUserId, requireUserIdOrWebPartner, requireWebPartner, respond, respond, respond, respond
@GET @Path(value="/counts") @Produces(value="application/json") public javax.ws.rs.core.Response getCollectionStats()
@GET @Path(value="/{type}/folders") @Produces(value="application/json") public javax.ws.rs.core.Response getCollectionSubFolders(@DefaultValue(value="PERSONAL") @PathParam(value="type") CollectionType type)
@GET @Path(value="/{type}/folders/{id}") public javax.ws.rs.core.Response getCollectionFolder(@PathParam(value="type") CollectionType type, @PathParam(value="id") long folderId)
@GET @Produces(value="application/json") @Path(value="/{type}/entries") public javax.ws.rs.core.Response read(@PathParam(value="type") String collectionType, @DefaultValue(value="0") @QueryParam(value="offset") int offset, @DefaultValue(value="15") @QueryParam(value="limit") int limit, @DefaultValue(value="created") @QueryParam(value="sort") String sort, @DefaultValue(value="false") @QueryParam(value="asc") boolean asc, @DefaultValue(value="") @QueryParam(value="filter") String filter, @QueryParam(value="fields") List<String> queryParam)
Copyright © 2017. All rights reserved.