ClimateNetTumoLabs / ClimateNetTumoLabs/lambda-functions

Fix API Gateways

Abierto
#3 1 comentario 0 reacciones 1 asignado Asignado a @areviksol Ver en GitHub
Lenguaje dominante
Python
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

API Endpoint:
https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData
Parameters:
device_id (required): Unique identifier for the device.
start_time (Not required): Start date and time for the weather data retrieval (format: YYYY-MM-DD).
end_time (Not required): End date and time for the weather data retrieval (format: YYYY-MM-DD).
Example Requests:
GET https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData?device_id=8&start_time=2023-11-10&end_time=2024-1-8
Retrieve Last 24 Hours Data:
If you use the following link without specifying start_time and end_time, you will receive the weather data for the last 24 hours.

https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData?device_id=8
Response:
The API returns weather data in JSON format, containing relevant information based on the provided parameters.

Usage:
Make a GET request to the API endpoint (https://mrecurtz89.execute-api.us-east-1.amazonaws.com/getData) with the parameters (device_id, start_time, end_time).
Parse the JSON response to extract the weather data.
Utilize the retrieved weather data in your application as needed, such as displaying it to users, performing analysis, or integrating it with other services.
Note: Ensure that you handle any errors gracefully, such as invalid parameters or network issues, to provide a seamless experience for your users.

Please use this doc and create same functionality

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.