Demonstrating Saber
Demonstrating this system is done using Postman, as explained in the following sections.
Submitting to the Register Taxi endpoint
In the following Postman, a POST
request is sent to the URL http://localhost/taxis
with this body:
{ "taxiType":"NANO" }
When the Send
button is pressed, a JSON of a map with taxiId
will be returned back, along with the HTTP status code 200
:

Submitting location to update Taxi Location endpoint
In the following Postman, a PUT
request is sent to the URL http://localhost:8080/taxis/<TaxiId>
with the following JSON body:
{"latitude":6.938020, "longitude":79.963855}
When the Send
button is pressed, a JSON of a map with taxiId
will be returned along with the HTTP status code 200
:

Submitting to Update Taxi Status endpoint
In the followingPostman PUT
request, a PUT
request is sent to the URL http://localhost:8080/taxis/<TaxiId>/status?status=OCCUPIED
, and when the Send
button is pressed a JSON of a map with taxiId
, after updating the status...