Skip to content

Fix API Gateways #3

@HovhannesApinyan

Description

@HovhannesApinyan

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions