Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 649 Bytes

README.md

File metadata and controls

44 lines (34 loc) · 649 Bytes

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":"[email protected]","password":"password"}' \
  http://localhost:8080/api/users

Get single user

curl http://localhost:8080/api/users/1