Get End Flight
"Effortlessly manage flight sessions and retrieve essential data with Aeromegh's endFlight API."
Last updated
"Effortlessly manage flight sessions and retrieve essential data with Aeromegh's endFlight API."
Last updated
This API facilitates programmatic access to flight session management, enabling authorized users to efficiently terminate flights and gather pertinent information for further analysis.
To use the API, insert your API key in the Authorization header like this:
Replace <YOUR_API_KEY>
with your AeroGCS API key. Without it, you'll get a 401 Unauthorized error.
GET - Retrieve Flight Ended Status
URL parameters are
Parameter | Description |
---|---|
Response Codes Explanation:
Examples of how you can call this API using curl, Node.js, and Python
Note: Replace <API_KEY>
with the actual API_KEY provided by Aeromegh.
Example of API response in JSON format:
The API response provides details about the flight session termination status, including the following parameter:
Message: A textual message indicating the status of the ended flight session.
Code | Details | Message |
---|---|---|
flightId
Unique identifier for the flight session.
teamId
Unique identifier for the team managing the flight.
distanceCovered
Distance covered during the flight (in meters).
areaCovered
Area covered by the drone during the flight (in square meters).
200
The request was successful.
"OK"
400
Request parameters missing.
"Request parameters missing"
500
Internal server error.
"Internal server error"