This is a simple Microservice built in Lumen micro framework.
- PHP
>= 7.1.3
- MySQL
>= 5.6
- Clone the repo (
git clone...
) - Run
composer install
to install the application dependencies - Create a copy of
.env.example
and save it as.env
- Create a database and enter the database credentials in the
.env
file - Run
php artisan migrate
to 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
phpunit
to run the unit tests