The application is a simple REST-API that can verify a json file by follow the Context And Requirements of Technical Assessment for Laravel Developer.
- Laravel v9.52.5 (PHP v8.2.0)
- Passport V.11 for API authentication
- Clone this git repo.
- Run
composer install
- Copy
.env.example
to.env
file - Setup database name and credentials on
.env
file - Run
php artisan migrate --seed
- Run
php artisan passport:install
- Run
php artisan serve --port=3000
api/login
, input required :email
andpassword
, to get the token.api/verify
, input required :file_content
must json file and max. 2MB and autheticated user token
- Please use
application/json
forContent-Type
andAccept
headers