This is a simple Microservice built in Lumen micro framework.
- PHP
>= 7.1.3 - MySQL
>= 5.6
- Clone the repo (
git clone...) - Run
composer installto install the application dependencies - Create a copy of
.env.exampleand save it as.env - Create a database and enter the database credentials in the
.envfile - Run
php artisan migrateto create the database tables
- GET
/api/files(get a list of all files) - GET
/api/files/{id}(get a single file) - GET
/api/files/download/{id}(download a file) - GET
/api/files/total(get total used space) - POST
/api/files(upload a file) - DELETE
/api/files/{id}(delete a file)
- Run
phpunitto run the unit tests