Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexmanno/drunk
A drunk rest api framework made in alcol
https://github.com/alexmanno/drunk
Last synced: 6 days ago
JSON representation
A drunk rest api framework made in alcol
- Host: GitHub
- URL: https://github.com/alexmanno/drunk
- Owner: alexmanno
- Created: 2019-03-17T11:39:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-29T09:34:37.000Z (about 5 years ago)
- Last Synced: 2024-10-30T08:21:38.725Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 67.4 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation
Start docker containers
```sh
docker-compose up -d
```Get a shell
```sh
docker exec -ti drunk_php_1 bash
```Install project
```sh
cd /app
composer install
```Dump sql
```sh
bin/console orm:schema-tool:create
```# Usage
### Retrieve all users
```sh
curl http://localhost:8080/api/users
```### Create user
```sh
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
```sh
curl http://localhost:8080/api/users/1
```