Pull Dependencies and Run
mvn install
mvn spring-boot:run
-
Drone Registration
curl --location --request POST 'http://localhost:8089/api/drone' \ --header 'Content-Type: application/json' \ --data-raw '{ "model": "LIGHT_WEIGHT", "weightLimit": 500, "batteryCapacity": 100 }'
-
Load Drone with Medication
curl --location --request PUT 'http://localhost:8089/api/drone/1' \ --header 'Content-Type: application/json' \ --data-raw '{ "name": "drone1", "weight": 500, "image": "shorturl.at/fiAEM" }'
-
Find Available Drones
curl --location --request GET 'http://localhost:8089/api/drone/available'
-
Get Drone or Get Drone battery
curl --location --request GET 'http://localhost:8089/api/drone/1'
-
Swagger UI
curl --location --request GET 'http://localhost:8089/swagger-ui/#/'