ClimateNetTumoLabs / ClimateNetTumoLabs/lambda-functions

Fix API Gateways

Ouverte
#3 1 commentaire 0 réactions 1 personne assignée Assignée à @areviksol Voir sur GitHub
Langage dominant
Python
Étoiles
0
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.