URL | Method | Desciption |
---|---|---|
/api/signup | POST | Registration with unique email and hashed password |
/api/login_check | POST | Allow registered user to sign in via JWT authentication |
/api/users/ | GET | Returns informations from logged user |
/api/reservations | POST | Add a reservation from logged user |
/api/reservations | GET | Get all reservations from logged users |
/api/reservations/{id} | GET | Get one specific reservation (after checking the logged user) |
- Clone the repository & run
composer install
- Specify your work environment
DATABASE_URL="mysql://user_name:password@127.0.0.1:3306/database_name?serverVersion=mariadb-10.3.25"
JWT_PASSPHRASE=e65cbbbe71ea5677b6199c1821c26d0b
APP_ENV=dev
- Migrate database
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
- Generate a keypair for lexik (JWT authentication)
php bin/console lexik:jwt:generate-keypair