-
Notifications
You must be signed in to change notification settings - Fork 0
GET Contracts Table
Ksenyia edited this page May 17, 2016
·
6 revisions
Resource URI
/contract_table/{type}/{id}
Resource Properties
Property | Description |
---|---|
id | A string that uniquely identifies. |
type | Collection type( for example, request for getting contracts are called at country page. contracts have following type type="country"). Possible variants of the types: project, site, field, concession,companies, commodity, country. |
Response Attribute
{
contracts: [
{
_id: String,
id: String,
contract_name: String,
contract_country:
{
code: String,
name:String
},
contract_commodity: Array,
companies: 0
}
]
}
HTTP GET
Default Request
curl -GET http://end-point-uri/contract_table/country/IQ
Response
HTTP Status Code 200
{
contracts: [
{
_id: "ocds-591adf-IQ2189765450RC",
id: "",
contract_name: "Iraqi Kurdistan, Sterling- Sangaw North Block, Production Sharing Agreement, 2007",
contract_country:
{
code: "IQ",
name: [ ]
},
contract_commodity: [
"Hydrocarbons"
],
companies: 0
}
]
}