-
Notifications
You must be signed in to change notification settings - Fork 0
GET Concessions Table
Ksenyia edited this page Nov 2, 2016
·
4 revisions
Resource URI
/concession_table/{type}/{id}
Resource Properties
Property | Description |
---|---|
id | A string that uniquely identifies. |
type | Collection type( for example, request for getting concessions are called at country page. concessions have following type and type="country"). Possible variants of the types: project,site,field,contract, companies,commodity,country. |
Response Attribute
{
concessions: [
{
_id: String,
concession_name: String,
concession_country: [
{
iso2: String,
name: String,
_id: String,
country_aliases: Array
}
],
concession_type:
{
source: String,
string: String,
_id: String,
timestamp: Date,
}
concession_commodities:[
{
source: String,
commodity:
{
_id: String,
commodity_name: String,
commodity_type: String,
commodity_id: String,
commodity_aliases: Array
},
timestamp: Date
}
]
}
]
}
HTTP GET
Default Request
curl -GET http://end-point-uri/concession_table/country/57100133bd08c40100abf6de
Response
HTTP Status Code 200
{
concessions: [
{
_id: "56a2b8236e585b7316655794",
concession_name: "Block A",
concession_country: [
{
iso2: "AD",
name: "Andorra",
_id: ""56f8c98288a7024614708e98"",
country_aliases: [ ]
}
],
concession_type:
{
source: "56747e060e8cc07115200ee6",
string: "offshore",
_id: "56f8c98288a7024614708fd8",
timestamp: ""2016-03-28T06:04:49.711Z"",
}
concession_commodities:[
{
source: "56747e060e8cc07115200ee5",
commodity:
{
_id: "56f8c98288a702461470903c",
commodity_name: "Ferrochrome",
commodity_type: "mining",
commodity_id: "ferrochrome",
commodity_aliases: [ ]
},
timestamp: "2016-03-28T06:04:49.711Z"
}
]
}
]
}