This's documentation for Internation task using Symfony v4.2
Make sure that you install PHP v7.1.3
, MySQL v5.7
and composer
git clone https://github.com/Maghraby/internation.git
cd internation
composer install
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
php bin/console doctrine:fixtures:load
Please don't forget to change database URL from .env
file
- Admin Can list all users via
/api/users
usingGET
method. - Admin Can create users via
/api/users
usingPOST
method. - Admin Can delete a user via
/api/users/{id}
usingDELETE
method. - Admin Can list all groups via
/api/groups
usingGET
method. - Admin Can create groups via
/api/groups
usingPOST
method. - Admin Can delete a group that has no users via
/api/groups/{id}
usingDELETE
method. - Admin Can list all memberships between
users
andgroups
via/api/memberships
usingGET
method. - Admin Can create membership between
user
andgroup
via/api/memberships
usingPOST
method. - Admin Can delete membership between
user
andgroup
via/api/memberships/{id}
usingDELETE
method.
Please check swagger.yml
file
php bin/console server:run
use X-AUTH-TOKEN
header value REAL_TOKEN
from fixtures.
This will use default port 8000
php bin/phpunit
Please don't forget to change database URL from .env.test
file