Install the packages with this command in yout terminal:
composer install
Set JWT_SECRET in .env file, example JWT_SECRET=081ZMlHGJ2nmw0R0rPZ7QTIGTCtvEm0m6csuJFRVWc you can generate running the command: php artisan jwt:secret
Register Users: POST /register
Login Users: POST /login
I used JWT so after register or login response is a token field that can be send in Authorization Header this way:
Field: Authorization Value: Bearer TOKEN
Token has validate of 60 minutes, but if needed you can change in config/jwt.php in "ttl"
All the requests are protected, so you have to register a user to access
Insert Cards: POST /cards
List Cards: GET /cards
Show Cards: GET /cards/{id}/show
Update Cards: PUT /cards/{id}/update
Delete Cards: DELETE /cards/{id}/delete
List Categories: GET /categories
To Run Tests you can use the command: ./vendor/bin/phpunit The files are locate in tests/Unit