@Path(value="json/products") public class JSONBasedProducts extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
JSONBasedProducts() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createProduct(String logicalIdentifier,
String ver,
String title,
String type,
String altId) |
javax.ws.rs.core.Response |
defaultProducts() |
javax.ws.rs.core.Response |
getProductsWithLatestReleases() |
javax.ws.rs.core.Response |
getProductsWithLatestReleases(String insRef,
String invRef,
String nodeRef) |
javax.ws.rs.core.Response |
getProductsWithLatestStatus() |
javax.ws.rs.core.Response |
products(String type) |
javax.ws.rs.core.Response |
products(String insRef,
String invRef) |
javax.ws.rs.core.Response |
updateProduct(String logicalIdentifier,
String ver,
String title,
String type,
String altId) |
@GET @Produces(value="application/json") public javax.ws.rs.core.Response defaultProducts() throws org.json.JSONException
org.json.JSONException
@Path(value="{instRef : (.+)?}/{investRef : (.+)?}") @GET @Produces(value="application/json") public javax.ws.rs.core.Response products(@PathParam(value="instRef") String insRef, @PathParam(value="investRef") String invRef) throws org.json.JSONException
org.json.JSONException
@Path(value="type/{Type}") @GET @Produces(value="application/json") public javax.ws.rs.core.Response products(@PathParam(value="Type") String type) throws org.json.JSONException
org.json.JSONException
@POST @Path(value="/add") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response createProduct(@FormParam(value="LogicalIdentifier") String logicalIdentifier, @FormParam(value="Version") String ver, @FormParam(value="Title") String title, @FormParam(value="Type") String type, @FormParam(value="AlternateId") String altId) throws IOException
IOException
@POST @Path(value="/update") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response updateProduct(@FormParam(value="LogicalIdentifier") String logicalIdentifier, @FormParam(value="Version") String ver, @FormParam(value="Title") String title, @FormParam(value="Type") String type, @FormParam(value="AlternateId") String altId) throws IOException
IOException
@Path(value="/prod-with-status") @GET @Produces(value="application/json") public javax.ws.rs.core.Response getProductsWithLatestStatus() throws org.json.JSONException
org.json.JSONException
@Path(value="/prod-with-releases/{instRef : (.+)?}/{investRef : (.+)?}/{nodeRef : (.+)?}") @GET @Produces(value="application/json") public javax.ws.rs.core.Response getProductsWithLatestReleases(@PathParam(value="instRef") String insRef, @PathParam(value="investRef") String invRef, @PathParam(value="nodeRef") String nodeRef) throws org.json.JSONException
org.json.JSONException
@Path(value="/prod-with-all-releases") @GET @Produces(value="application/json") public javax.ws.rs.core.Response getProductsWithLatestReleases() throws org.json.JSONException
org.json.JSONException
Copyright © 2019. All rights reserved.