@Path(value="/manuscripts") public class ManuscriptResource extends RestResource
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 |
---|
ManuscriptResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(Manuscript manuscript) |
javax.ws.rs.core.Response |
createZip(long id) |
javax.ws.rs.core.Response |
delete(long id) |
javax.ws.rs.core.Response |
getList(int offset,
int size,
String sort,
boolean asc,
String filter) |
javax.ws.rs.core.Response |
update(long id,
Manuscript manuscript) |
addHeaders, getThisServer, getUserId, getUserId, getWebPartner, log, requireUserId, requireUserIdOrWebPartner, requireWebPartner, respond, respond, respond, respond
@GET public javax.ws.rs.core.Response getList(@DefaultValue(value="0") @QueryParam(value="offset") int offset, @DefaultValue(value="15") @QueryParam(value="size") int size, @DefaultValue(value="creationTime") @QueryParam(value="sort") String sort, @DefaultValue(value="false") @QueryParam(value="asc") boolean asc, @QueryParam(value="filter") String filter)
@GET @Path(value="{id}/files/zip") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createZip(@PathParam(value="id") long id)
@POST public javax.ws.rs.core.Response create(Manuscript manuscript)
@PUT @Path(value="/{id}") public javax.ws.rs.core.Response update(@PathParam(value="id") long id, Manuscript manuscript)
@DELETE @Path(value="/{id}") public javax.ws.rs.core.Response delete(@PathParam(value="id") long id)
Copyright © 2017. All rights reserved.