alexmanno / drunk

A drunk rest api framework made in alcol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Retrieve 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

About

A drunk rest api framework made in alcol


Languages

Language:PHP 100.0%