-
Phonebook entries available to registered users (private)
-
A phonebook entry can be shared with another user (and unshared)
-
Phonebook entry: name, phone {full CRUD)
-
There must be at least one unit test
-
There must be at least one feature test
-
The application must use Docker
-
Optional: Any additional ideas or suggestions of yours are not necessary but are considered a big plus.
- pull repo
- cd into project dir
-
docker compose build --no-cache &&\ docker compose up -d
-
bin/console doctrine:database:create &&\ bin/console doctrine:schema:create &&\ bin/console --env=test doctrine:database:create &&\ bin/console --env=test doctrine:schema:create
-
bin/console d:m:m &&\ bin/console d:f:l &&\ bin/console --env=test d:m:m &&\ bin/console --env=test d:f:l
[ !IMPORTANT ] All protected endpoints must be accessed with header HTTP_Authorize => 'Bearer XXXXXX'
{
"username": "user7",
"password": "secret123"
}
- Actions: ['GET','POST']
- POST BODY:
{
"username": "user7",
"password": "secret123"
}
- Actions: ['GET','PUT', 'DELETE']
- PUT BODY:
{
"username": "user7",
"password": "secret123"
}
- Actions: ['POST']
- POST BODY:
{
"user_id": "ddcef2ca-5939-4d71-b50c-b2a50bac27de",
"contact_id": "86e31ea3-74e1-4430-8e74-d39c57324e29"
}
- Actions: ['POST']
- POST BODY:
{
"user_id": "ddcef2ca-5939-4d71-b50c-b2a50bac27de",
"contact_id": "86e31ea3-74e1-4430-8e74-d39c57324e29"
}
bin/phpunit