- PHP 7.0 or above
- openssl
- Install the dependencies using the
composer install
command; - Assigns write permission to the
var/logs
andvar/cache
directories.
JWT Authentication has been implemented in this API. To authenticate using a token, send a POST
request to the
/user_token
route with the header Content-Type: application/json
and the following body:
{
"_username": "teste",
"_password": "1234"
}
Use the token in the other requests that will be made, including the Authorization: Bearer <token>
header.
By default, the environment in which the API is run is a production environment. To avoid loss of performance, Symfony caches its key features and needs to be removed whenever a configuration or source change is made.
To clear the production cache, run the command php bin/console cache:clear --env=prod
.