Get list of products for a company
get
/PASService/rest/services/companies/{id}/products
Gets a list of the latest 100 products for a company based on the specified company Id
Request
Path Parameters
-
id: string
Pattern:
\{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?Company Id
Query Parameters
-
expand(optional): string
codes
Response
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to get a list of the latest 100 products for a company based on the specified company Id.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X GET -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/companies/05711222-7DB3-4EBD-A821-57A30A699B88/products"
Example Response Body
The following shows an example of the response body in JSON format:
"{
"count": 26,
"products": [
{
"links": [
{
"href": "http://server:port/PASService/rest/services/companies/05711222-7DB3-4EBD-A821-57A30A699B88/products/3FE40262-1669-413E-ACBA-8615DD7DAA6F",
"rel": "self",
"mediaType": "application/json",
"method": "GET"
}
],
"productName": "Individual Prototype Product",
"productDescription": "Individual Prototype Product",
"effectiveFrom": "1980-01-01T00:00:00Z",
"plans": [
{
"links": [
{
"href": "http://server:port/PASService/rest/services/products/3FE40262-1669-413E-ACBA-8615DD7DAA6F/plans/74C46F3A-7816-471A-BAC8-AECCD18E985C",
"rel": "self",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://server:port/PASService/rest/services/codes?codeName=PlanAllocationMethod&codeValue=01",
"rel": "codes/planAllocationMethodCode",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://server:port/PASService/rest/services/codes?codeName=PlanBusinessStatus&codeValue=Approved",
"rel": "codes/businessStatus",
"mediaType": "application/json",
"method": "GET"
}
],
"fields": {},
"multiFields": {},
"effectiveFrom": "2000-01-01T00:00:00Z",
"planName": "Index Prototype Plan",
"defaultCurrencyCode": "USD",
"pointInTimeValuation": "Y",
"planAllocationMethodCode": "01",
"updatedGmt": "2014-04-07T18:15:34Z",
"activeGmt": "2014-04-07T18:15:35Z",
"recordStatusCode": "ACTIVE",
"updatedBy": "system",
"businessStatusCode": "Approved",
"planSliceId": "74C46F3A-7816-471A-BAC8-AECCD18E985C",
"planId": "74C46F3A-7816-471A-BAC8-AECCD18E985C",
"companyId": "05711222-7DB3-4EBD-A821-57A30A699B88",
"marketMakerId": "22FBC7C1-D8E0-4741-9D22-DF929A2890B5",
"productId": "3FE40262-1669-413E-ACBA-8615DD7DAA6F"
}
],
"productId": "3FE40262-1669-413E-ACBA-8615DD7DAA6F",
"companyId": "05711222-7DB3-4EBD-A821-57A30A699B88"
}
"