Retrieve planting projects
GET {{baseUrl}}/planting-projects?limit=10&offset=0&sort=-id
Use this API to retrieve a list of planting projects.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | number | The number of items you want the list to be limited to | |
offset | number | The number of items to offset the start of the list from | |
sort | string | Allow ascending and descending sorting over one or more fields. For example: | |
<ul> | |||
<li><b>sort=-name</b>: sort on the "name" field in descending order. | |||
<li><b>sort=+name</b>: sort on the "name" field in ascending order. | |||
<li><b>sort=name</b>: sort on the "name" field in ascending order (ascending is default). | |||
<li><b>sort=type,-date</b>: sort on the "type" field in ascending order, followed by the "date" field in descending order. | |||
</ul> |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"count":10,"limit":10,"offset":0,"total":15,"plantingProjects":[{"id":1,"countryName":"Brazil","target":2000000,"treesPlanted":1680000,"areaCovered":94,"carbonSequestered":50,"name":"Amazon Rainforest","description":"The Atlantic Forest, also known as Mata Atlantica, once covered 130 million hectares across Brazil. Now, this tropical rainforest ecosystem is home to more than half of the country’s population.","images":[{"url":"https:image"},{"url":"https:image"}]},{"id":1,"countryName":"Brazil","target":2000000,"treesPlanted":1680000,"areaCovered":94,"carbonSequestered":50,"name":"Amazon Rainforest","description":"The Atlantic Forest, also known as Mata Atlantica, once covered 130 million hectares across Brazil. Now, this tropical rainforest ecosystem is home to more than half of the country’s population.","images":[{"url":"https:image"},{"url":"https:image"}]}]}