Installation
Start docker containers
docker-compose up -d
Get a shell
docker exec -ti drunk_php_1 bash
Install project
cd /app
composer install
Dump sql
bin/console orm:schema-tool:create
Usage
Retrive all users
curl http://localhost:8080/api/users
Create user
curl --header "Content-Type: application/json" \
--request POST \
--data '{"username":"mario-rossi","firstName":"Mario","lastName":"Rossi","email":"mario.rossi@example.com","password":"password"}' \
http://localhost:8080/api/users
Get single user
curl http://localhost:8080/api/users/1