Skip to content

Main map

Ksenyia edited this page Feb 1, 2017 · 3 revisions

Getting main map.

Resource URI

main_map

Response Attribute

{
   count: Integer, 
   data: [
       {
           _id: String,
           name: String,
           iso2: String,
           project_count: Integer,
           transfer_count: Integer
        }
   ],
   world:  [
       {
           city: String,
           iso2: String,
           lat: Float,
           long: Float
        }
   ]
}

HTTP GET

Default Request

curl -GET http://end-point-uri/main_map

Response

HTTP Status Code 200

{
   count: 52, 
   data: [
       {
           _id: "57d8a30b16026c0f0012bf76",
           name: "Algeria",
           iso2: "DZ",
           project_count: 4,
           transfer_count: 6
        },
        ...
   ],
   world: [
       {
           city: "Algeria",
           iso2: "DZ",
           lat: 42.50779,
           long: 1.52109
        },
        ...
   ]
}
Clone this wiki locally