sh install.sh
php -d memory_limit=-1 composer.phar install
bin/console doctrine:database:create
bin/console doctrine:schema:update --force
mkdir -p var/jwt
openssl genrsa -out var/jwt/private.pem -aes256 4096
openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem
url: /login_check
requirements:
_username_password
responses:
- 200: OK
token: a Json Web Token
- 401: Bad credentials
message
url: /register/
requirements:
fos_user_registration_form[username]fos_user_registration_form[email]fos_user_registration_form[plainPassword][first]fos_user_registration_form[plainPassword][second]callback: the url to given in the email to confirm it.
optionals:
pattern: default :token. The pattern of the string to replace with the token in the callback url
responses:
- 200: OK user is created but not enable yet. Need email confirmation.
- no data
- 201: CREATED user is created and enabled
token: a Json Web Token
- 400: Bad credentials
global=> array of global form errorsfields=> object of fields errors