-
Notifications
You must be signed in to change notification settings - Fork 0
GET latest 10 additons Projects and Sources
Ksenyia edited this page Jul 14, 2016
·
1 revision
Getting latest 10 additons Projects and Sources.
Resource URI
last_added
Response Attributes
{
projects: [
{
_id: String,
proj_id: String,
proj_name: String,
proj_established_source:
{
_id: String,
source_name: String,
source_type: String,
source_type_id:
{
_id: String,
source_type_name: String,
source_type_id: String,
source_type_authority: String,
source_type_examples: String,
source_type_url_type: String,
source_type_display: Boolean (true or false)
},
source_url: String,
source_archive_url: String,
source_notes: String,
staged: Boolean (true or false),
possible_duplicate: Boolean (true or false),
create_date: Date,
create_author: Array,
retrieve_date: Date,
source_date: Date
},
description: String,
_keywords: Array,
proj_status:
{
source: String,
_id: String,
timestamp: Date,
string: String
},
proj_company_share: Array,
proj_operated_by: Array,
proj_coordinates: [
{
source: String,
loc: Array,
_id: String,
timestamp: Date
}
],
proj_address: Array,
proj_commodity: Array,
proj_country: [
{
source: String,
country:
{
iso2: String,
name: String,
_id: String,
},
_id: String,
timestamp: Date
},
],
proj_aliases: Array,
transfers_query: Array,
source_type:
{
p: Boolean (true or false),
c: Boolean (true or false)
},
company_count: Integer,
contract_count: Integer,
site_count: Integer,
field_count: Integer,
concession_count: Integer,
transfer_count: Integer,
production_count_count: Integer,
verified: String,
},
...
],
sources: [
{
_id: String,
source_name: String,
source_type_id: String,
source_url: String,
source_archive_url: String,
source_notes: String,
staged: Boolean (true or false),
possible_duplicate: Boolean (true or false),
create_date: Date,
create_author: Array,
retrieve_date: Date,
source_date: Date,
projects: Integer
},
...
]
}
HTTP GET
Default Request
curl -GET http://end-point-uri/last_added
Response
HTTP Status Code 200
{
projects: [
{
_id: "570f7b1f935d3b3dd5dbe701",
proj_id: "adar-gok3sd",
proj_name: "Adargas",
proj_established_source:
{
_id: "56747e060e8cc07115200ee6",
source_name: "source 3",
source_type: "source id 3",
source_type_id:
{
_id: "56e8736944442a3824141429",
source_type_name: "UK Mandatory payment disclosure",
source_type_id: "ukdis",
source_type_authority: "disclosure",
source_type_examples: "Mandatory company disclosure
(eg. http://www.detnor.no/wp-content/uploads/2015/03/DETNOR-Annual-Report-2014.pdf?d5b1f2 )",
source_type_url_type: "Direct link to data in PDF report",
source_type_display: true
},
source_url: "google.com",
source_archive_url: "sheets.google.com",
source_notes:"notes notes notes notes notes notes
notes notes notes notes notes notes
notes notes",
staged: true,
possible_duplicate: false,
create_date: "2016-05-12T07:39:08.723Z",
create_author: [ "569976c21dad48f614cc8126" ],
retrieve_date: "2016-05-12T07:39:08.723Z",
source_date: "2016-05-12T07:39:08.723Z"
},
description: "<p>yes</p><p>no</p>",
_keywords: [
"alpamarca",
"rio",
"pallanga"
],
proj_status:
{
source: "56747e060e8cc07115200ee6",
_id: "56f8c98288a70246147090e6",
timestamp: "2016-03-28T06:04:49.828Z",
string: "production"
},
proj_company_share: [ ],
proj_operated_by: [ ],
proj_coordinates: [
{
source: "56747e060e8cc07115200ee6",
loc: [
-94.09667961,
-43.52395855
],
_id: "56f8c98288a70246147090e7",
timestamp: "2016-03-28T06:04:49.711Z"
},
],
proj_address: [ ],
proj_commodity: [ ],
proj_country: [
{
source: "56747e060e8cc07115200ee6",
country:
{
iso2: "MX",
name: "Mexico",
_id: "56f8c98288a7024614708f34",
},
_id: "56f8c98288a70246147090e8",
timestamp: "2016-03-28T06:04:49.711Z"
},
],
proj_aliases: [ ],
transfers_query: [
"570f7b1f935d3b3dd5dbe701"
],
source_type:
{
p: true,
c: false
},
company_count: 1,
contract_count: 0,
site_count: 0,
field_count: 0,
concession_count: 0,
transfer_count: 0,
production_count_count: 0,
verified: "payment",
},
...
],
sources: [
{
_id: "571654330ef3fc0100672a6e",
source_name: "2015 Total mandatory disclosure",
source_type_id: "56e8736944442a3824141429",
source_url: "https://www.sec.gov/Archives/edgar/data/879764/000119312516506029/d83747d20f.htm",
source_archive_url: "",
source_notes: "",
staged: true,
possible_duplicate: false,
create_date: "2016-04-19T15:52:19.494Z",
create_author: [ ],
retrieve_date: "2016-04-10T00:00:00.000Z",
source_date: "2016-04-10T00:00:00.000Z",
projects: 0
},
...
]
}