Documentation of ecomapss api project
POST /areas
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
nome | Area's nome. |
|
categoria | Area's categoria. |
|
areacol | Area's areacol. |
DELETE /areas/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
GET /areas/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
GET /areas
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
q | String | optional Query to search. |
page | Number | optional Page number. |
limit | Number | optional Amount of returned items. |
sort | String[] | optional Order of returned items. |
fields | String[] | optional Fields to be returned. |
PUT /areas/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
nome | Area's nome. |
|
categoria | Area's categoria. |
|
areacol | Area's areacol. |
POST /area-elementos
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
id_area | Area elemento's id_area. |
|
id_elemento | Area elemento's id_elemento. |
DELETE /area-elementos/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
GET /area-elementos/:id
Name | Type | Description |
---|---|---|
access_token | String | user access token. |
GET /area-elementos
Name | Type | Description |
---|---|---|
access_token | String | user access token. |
q | String | optional Query to search. |
page | Number | optional Page number. |
limit | Number | optional Amount of returned items. |
sort | String[] | optional Order of returned items. |
fields | String[] | optional Fields to be returned. |
PUT /area-elementos/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
id_area | Area elemento's id_area. |
|
id_elemento | Area elemento's id_elemento. |
POST /auth
Name | Type | Description |
---|---|---|
Authorization | String | Basic authorization with email and password. |
Name | Type | Description |
---|---|---|
access_token | String | Master access_token. |
POST /elementos
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
info | Elemento's info. |
|
estado | Elemento's estado. |
DELETE /elementos/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
GET /elementos/:id
GET /elementos
Name | Type | Description |
---|---|---|
q | String | optional Query to search. |
page | Number | optional Page number. |
limit | Number | optional Amount of returned items. |
sort | String[] | optional Order of returned items. |
fields | String[] | optional Fields to be returned. |
PUT /elementos/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
info | Elemento's info. |
|
estado | Elemento's estado. |
POST /faunas
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
nome_popular | Fauna's nome_popular. |
|
nome_cientifico | Fauna's nome_cientifico. |
|
ordem | Fauna's ordem. |
|
reino | Fauna's reino. |
|
filo | Fauna's filo. |
|
classe | Fauna's classe. |
|
elemento_id | Fauna's elemento_id. |
DELETE /faunas/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
GET /faunas/:id
GET /faunas
Name | Type | Description |
---|---|---|
q | String | optional Query to search. |
page | Number | optional Page number. |
limit | Number | optional Amount of returned items. |
sort | String[] | optional Order of returned items. |
fields | String[] | optional Fields to be returned. |
PUT /faunas/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
nome_popular | Fauna's nome_popular. |
|
nome_cientifico | Fauna's nome_cientifico. |
|
ordem | Fauna's ordem. |
|
reino | Fauna's reino. |
|
filo | Fauna's filo. |
|
classe | Fauna's classe. |
|
elemento_id | Fauna's elemento_id. |
POST /historias
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
titulo | Historia's titulo. |
|
descricao | Historia's descricao. |
|
elemento_id | Historia's elemento_id. |
DELETE /historias/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
GET /historias/:id
GET /historias
Name | Type | Description |
---|---|---|
q | String | optional Query to search. |
page | Number | optional Page number. |
limit | Number | optional Amount of returned items. |
sort | String[] | optional Order of returned items. |
fields | String[] | optional Fields to be returned. |
PUT /historias/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
titulo | Historia's titulo. |
|
descricao | Historia's descricao. |
|
elemento_id | Historia's elemento_id. |
POST /mail
Name | Type | Description |
---|---|---|
String | Email address to receive the password reset token. |
|
data | String | Data which contains information what will be sent. |
POST /password-resets
Name | Type | Description |
---|---|---|
String | Email address to receive the password reset token. |
|
link | String | Link to redirect user. |
PUT /password-resets/:token
Name | Type | Description |
---|---|---|
password | String | User's new password. |
GET /password-resets/:token
POST /regioes
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
cidade | Regiao's cidade. |
|
uf | Regiao's uf. |
DELETE /regioes/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
GET /regioes/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
GET /regioes
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
q | String | optional Query to search. |
page | Number | optional Page number. |
limit | Number | optional Amount of returned items. |
sort | String[] | optional Order of returned items. |
fields | String[] | optional Fields to be returned. |
PUT /regioes/:id
Name | Type | Description |
---|---|---|
access_token | String | admin access token. |
cidade | Regiao's cidade. |
|
uf | Regiao's uf. |
POST /users
Name | Type | Description |
---|---|---|
access_token | String | Master access_token. |
String | User's email. |
|
password | String | User's password. |
name | String | optional User's name. |
picture | String | optional User's picture. |
role | String | optional User's role. |
DELETE /users/:id
Name | Type | Description |
---|---|---|
access_token | String | User access_token. |
GET /users/me
Name | Type | Description |
---|---|---|
access_token | String | User access_token. |
GET /users/:id
GET /users
Name | Type | Description |
---|---|---|
access_token | String | User access_token. |
q | String | optional Query to search. |
page | Number | optional Page number. |
limit | Number | optional Amount of returned items. |
sort | String[] | optional Order of returned items. |
fields | String[] | optional Fields to be returned. |
PUT /users/:id/password
Name | Type | Description |
---|---|---|
Authorization | String | Basic authorization with email and password. |
Name | Type | Description |
---|---|---|
password | String | User's new password. |
PUT /users/:id
Name | Type | Description |
---|---|---|
access_token | String | User access_token. |
name | String | optional User's name. |
picture | String | optional User's picture. |