Skip to content

Management Endpoint Documentation

Tareq Kirresh edited this page May 7, 2018 · 3 revisions

Management Endpoints

Authentication

POST /user/auth --> Authenticate a User.

Notification

GET /notifications/{token} --> Subscribe to notifications.

Driver Management

GET /user/driver/manager/ --> List all drivers with passwords.

GET /user/driver/manager/{driver_id} --> Read a particular driver

POST /user/driver/manager/ --> Create a new driver with a random username and password.

PUT /user/driver/manager/ --> Edit a driver.

DELETE /user/driver/manager/ --> Delete a driver.

API User Management

GET /user/api/management/ --> List all API users with tokens.

GET /user/api/management/{api_user_id} --> Read a particular API user.

POST /user/api/management/ --> Create a new API user with a random token.

PUT /user/api/management/ --> Edit an API user.

DELETE /user/api/management/ --> Delete an API user.

Dispatcher Management

GET /user/dispatcher/manager/ --> List all Dispatchers with passwords.

GET /user/dispatcher/manager/{dispatcher_id} --> Read a particular dispatcher.

POST /user/dispatcher/manager/ --> Create a new dispatcher.

PUT /user/dispatcher/manager/ --> Update a dispatcher.

DELETE /user/dispatcher/manager/ --> Delete a dispatcher.

Vehicle Management

GET /vehicle/manage/ --> List all vehicles.

GET /vehicle/manage/{vehicle_id} --> Read a vehicle.

POST /vehicle/manage/ --> Create a new vehicle, location entry, and status entry.

PUT /vehicle/manage/ --> Update a vehicle.

DELETE /vehicle/manage/ --> Delete a vehicle, its status entry, and its location entry.


Clone this wiki locally