npm install
npm run app
Base endpoint: https://cxi66ge4ng.execute-api.us-east-1.amazonaws.com/prod/
Same URL as the endpoint. Do a POST call with this values in the body as raw. The 'filter' is an optional field, matches with the 'data_type', empty string returns all items.
{
"httpMethod": "GET",
"queryStringParameters": {},
"filter": "Air Quality - PM10"
}{
"httpMethod": "POST",
"queryStringParameters": {},
"body": {
"Item": {
"data_types": "1",
"values": [
{
"latitude": "41,2448",
"value": 0,
"longitude": "1,6177"
}
],
"data_type": "Air Quality - PM10",
"range": "0-100"
}
}
}