Forked from: https://github.com/hergin/BusShuttleAPI
*Rewrote the Original API with Laravel.
*Changed routes to fulfill REST requirements.
*Added most endpoints.
*Added authorization tokens
The users table in the database was renamed to drivers, for now just change the name in PHPMyAdmin.
- You may need to use the file in this repository at
/database/database_config.sqlto create the database tables for you. You can import this file into phpMyAdmin NOT TESTED. - Clone repository to xampp/htdocs folder.
- Run
composer installin project directory. Get composer → https://getcomposer.org/download/ - Run
composer update. - You can now start the apache server. API endpoints are located in http://localhost/BusShuttleAPI/public/api
All endpoints now require an access token. See DOCUMENTATION.md for instructions to get a token.
GEThttp://localhost/BusShuttleAPI/public/api/driversGEThttp://localhost/BusShuttleAPI/public/api/drivers/{id}POSThttp://localhost/BusShuttleAPI/public/api/driversDELETEhttp://localhost/BusShuttleAPI/public/api/drivers/{id}
GEThttp://localhost/BusShuttleAPI/public/api/busesGEThttp://localhost/BusShuttleAPI/public/api/buses/{id}POSThttp://localhost/BusShuttleAPI/public/api/busesDELETEhttp://localhost/BusShuttleAPI/public/api/buses/{id}
GEThttp://localhost/BusShuttleAPI/public/api/inspection-itemsGEThttp://localhost/BusShuttleAPI/public/api/inspection-items/{id}POSThttp://localhost/BusShuttleAPI/public/api/inspection-itemsDELETEhttp://localhost/BusShuttleAPI/public/api/inspection-items/{id}
GEThttp://localhost/BusShuttleAPI/public/api/loopsGEThttp://localhost/BusShuttleAPI/public/api/loops/{id}POSThttp://localhost/BusShuttleAPI/public/api/loopsDELETEhttp://localhost/BusShuttleAPI/public/api/loops/{id}
GEThttp://localhost/BusShuttleAPI/public/api/stopsGEThttp://localhost/BusShuttleAPI/public/api/stops/{id}POSThttp://localhost/BusShuttleAPI/public/api/stopsDELETEhttp://localhost/BusShuttleAPI/public/api/stops/{id}
See DOCUMENTATION.md if you are accessing the API.