php bin/console doctrine:database:create
php bin/console doctrine:schema:update --force
php bin/console doctrine:fixtures:load
php bin/console fos:user:create
php bin/console create:new:client
php bin/console server:run
On the 'body tab', check 'raw', 'JSON' and inquire:
{
"grant_type": "password",
"client_id": "YourClientId",
"client_secret": "YourCLientSecret",
"username": "YourUsername",
"password": "YourPassword"
}
You will receive an access token and a refresh token.
Your access token expires after one hour !
{
"username": "YourUsername",
"email": "YourEmail",
"password": "YourPassword"
}
On the 'body tab', check 'raw', 'JSON' and inquire:
{
"grant_type": "refresh_token",
"client_id": "YourClientId",
"client_secret": "YourClientSecret",
"refresh_token": "YourRefreshToken"
}