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.sql
to create the database tables for you. You can import this file into phpMyAdmin NOT TESTED. - Clone repository to xampp/htdocs folder.
- Run
composer install
in 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.
GET
http://localhost/BusShuttleAPI/public/api/driversGET
http://localhost/BusShuttleAPI/public/api/drivers/{id}POST
http://localhost/BusShuttleAPI/public/api/driversDELETE
http://localhost/BusShuttleAPI/public/api/drivers/{id}
GET
http://localhost/BusShuttleAPI/public/api/busesGET
http://localhost/BusShuttleAPI/public/api/buses/{id}POST
http://localhost/BusShuttleAPI/public/api/busesDELETE
http://localhost/BusShuttleAPI/public/api/buses/{id}
GET
http://localhost/BusShuttleAPI/public/api/inspection-itemsGET
http://localhost/BusShuttleAPI/public/api/inspection-items/{id}POST
http://localhost/BusShuttleAPI/public/api/inspection-itemsDELETE
http://localhost/BusShuttleAPI/public/api/inspection-items/{id}
GET
http://localhost/BusShuttleAPI/public/api/loopsGET
http://localhost/BusShuttleAPI/public/api/loops/{id}POST
http://localhost/BusShuttleAPI/public/api/loopsDELETE
http://localhost/BusShuttleAPI/public/api/loops/{id}
GET
http://localhost/BusShuttleAPI/public/api/stopsGET
http://localhost/BusShuttleAPI/public/api/stops/{id}POST
http://localhost/BusShuttleAPI/public/api/stopsDELETE
http://localhost/BusShuttleAPI/public/api/stops/{id}
See DOCUMENTATION.md if you are accessing the API.