Skip to content

GET Commodity By ID

Ksenyia edited this page Feb 1, 2017 · 2 revisions

It gives the data of commodity like title, aliases and so on.

Resource URI

/commodities/{id}

Resource Properties

Property Description
id A string that uniquely identifies the commodity.

Response Attribute

commodity: {
    _id: String,
    commodity_name: String,
    commodity_type: String,
    commodity_id: String,
    commodity_aliases: Array
}

HTTP GET

Default Request

curl -GET http://end-point-uri/commodities/oil

Response

HTTP Status Code 200

commodity: {
    _id: "56fcd1e3be65cd01000bd2da",
    commodity_name: "Oil",
    commodity_type: "oil_and_gas",
    commodity_id: "oil",
    commodity_aliases: [ ]
}
Clone this wiki locally