This project is a Python application for monitoring UAV (Unmanned Aerial Vehicle) activities using a Flask API.
-
Install dependencies if they are not already installed (e.g., Flask, etc.).
-
Run the Flask application:
python app.py
The application will start running at http://127.0.0.1:5000
.
-
API Endpoints:
/api/drones/
: Retrieve a list of drones./api/tasks/
: Create a new task./api/tasks/<task_id>/
: Retrieve details of a specific task./api/tasks/<task_id>/execute/
: Execute a task.
-
Testing Endpoints:
The
test_api.py
file contains functions to test the API endpoints. Run the tests using:python test_api.py