-
Notifications
You must be signed in to change notification settings - Fork 0
GET Company By ID
Ksenyia edited this page May 17, 2016
·
5 revisions
It gives the data of company like company groups and commodities.
Resource URI
/companydata/{id}
Resource Properties
Property | Description |
---|---|
id | A string that uniquely identifies the company. |
Response Attribute
{
company_groups: [
{
_id: String,
company_group_name: String
}
],
company_commodity: [
{
_id: String,
commodity_name: String,
commodity_type: String,
commodity_id: String,
}
]
}
HTTP GET
Default Request
curl -GET http://end-point-uri/companydata/56fcd3d8be65cd01000bd79e
Response
HTTP Status Code 200
{
company_groups: [
{
_id: "56a14d8ee47b92f110ce9a58",
company_group_name: "Exxon"
},
...
],
company_commodity: [
{
_id: "56f8c98288a702461470900f",
commodity_name: "Ferrotitanium",
commodity_type: "mining",
commodity_id: "ferrotitanium",
},
...
]
}