Skip to content

A drunk rest api framework made in alcol

Notifications You must be signed in to change notification settings

andreagubellini/drunk

 
 

Repository files navigation

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

About

A drunk rest api framework made in alcol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%