-
Notifications
You must be signed in to change notification settings - Fork 0
GET Company Group By ID
Ksenyia edited this page May 17, 2016
·
2 revisions
It gives the data of company group like companies and commodities.
Resource URI
/companyGroupData/{id}
Resource Properties
Property | Description |
---|---|
id | A string that uniquely identifies the company group. |
Response Attribute
{
companies: [
{
_id: String,
company_name: String
}
],
commodities: [
{
_id: String,
commodity_name: String,
commodity_type: String,
commodity_id: String,
}
]
}
HTTP GET
Default Request
curl -GET http://end-point-uri/companyGroupData/56fcd3bcbe65cd01000bd563
Response
HTTP Status Code 200
{
companies: [
{
_id: "56fcd3eebe65cd01000bdb2d",
company_name: "Anglogold Ashanti"
},
{
_id: "56fcd522641ff90100863102",
company_name: "Anglogold"
},
...
],
commodities: [
{
_id: "56fcd1e3be65cd01000bd278",
commodity_name: "Gold",
commodity_type: "mining",
commodity_id: "gold",
},
...
]
}