-
Notifications
You must be signed in to change notification settings - Fork 0
GET Projects Table
Ksenyia edited this page May 17, 2016
·
5 revisions
Resource URI
/project_table/{type}/{id}
Resource Properties
Property | Description |
---|---|
id | A string that uniquely identifies the company group. |
type |
Response Attribute
{
projects: [
{
_id: String,
proj_id: String,
proj_name: String,
proj_country: [
{
source: String,
country:
{
iso2: String,
name: String,
_id: String,
country_aliases: Array
}
_id: String,
timestamp: Date
}
],
proj_commodity:[
{
source: String,
commodity:
{
_id: String,
commodity_name: String,
commodity_type: String,
commodity_id: String,
commodity_aliases: Array
},
_id: String,
timestamp: Date
}
],
proj_status:[
{
source: String,
_id: String,
timestamp: Date,
string: String
}
],
companies: Integer
}
]
}
HTTP GET
Default Request
curl -GET http://end-point-uri/project_table/country/57100133bd08c40100abf6de
Response
HTTP Status Code 200
{
projects: [
{
_id: "57100227bd08c40100ac1651",
proj_id: "za-akan-dvdwqh",
proj_name: "Akanani Project",
proj_country: [
{
source: "57100211bd08c40100ac0489",
country:
{
iso2: "ZA",
name: "South Africa",
_id: "57100133bd08c40100abf6de",
country_aliases: [ ]
}
_id: "57100227bd08c40100ac1654",
timestamp: "2016-04-14T20:44:33.814Z"
}
],
proj_commodity:[
{
source: "57100211bd08c40100ac0489",
commodity:
{
_id: "57100132bd08c40100abf587",
commodity_name: "Platinum",
commodity_type: "mining",
commodity_id: "platinum",
commodity_aliases: [ ]
},
_id: "57100227bd08c40100ac1652",
timestamp: "2016-04-14T20:44:33.814Z"
}
],
proj_status:[
{
source: "57100211bd08c40100ac0489",
_id: "57100227bd08c40100ac1653",
timestamp: null,
string: "exploration"
}
],
companies: 1
}
]
}