@Path(value="/custom-fields") public class CustomFieldResource 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 |
|---|
CustomFieldResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(long partId,
CustomField customField)
Creates a new custom field and associated it with the specified entry.
|
javax.ws.rs.core.Response |
delete(long id) |
javax.ws.rs.core.Response |
get(long id) |
javax.ws.rs.core.Response |
getPartByCustomFields(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
list(long partId) |
javax.ws.rs.core.Response |
update(long id,
CustomField customField) |
addHeaders, getThisServer, getUserId, getUserId, getWebPartner, log, requireUserId, requireUserIdOrWebPartner, requireWebPartner, respond, respond, respond, respond@GET
@Path(value="/parts")
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response getPartByCustomFields(@Context
javax.ws.rs.core.UriInfo uriInfo)
@POST
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response create(@QueryParam(value="partId")
long partId,
CustomField customField)
partIdpartId - optional (as long as value is set in the custom field object) entry part identifiercustomField - data for custom fields@GET
@Path(value="/{id}")
@Produces(value="application/json")
public javax.ws.rs.core.Response get(@PathParam(value="id")
long id)
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response list(@QueryParam(value="partId")
long partId)
@PUT
@Path(value="/{id}")
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response update(@PathParam(value="id")
long id,
CustomField customField)
@DELETE
@Path(value="/{id}")
public javax.ws.rs.core.Response delete(@PathParam(value="id")
long id)
Copyright © 2017. All rights reserved.