Restaurants
Introduction
A little test with aiohttp, aiopg, and postgresql
GETRetrieve all restaurants
http://127.0.0.1:8080/restaurants
GETRetrieve restaurant by name
http://127.0.0.1:8080/restaurants/:name
PATH VARIABLES
name
GETRetrieve random restaurant
http://127.0.0.1:8080/restaurants?random=true
PARAMS
random
POSTCreate restaurant
http://127.0.0.1:8080/restaurants
JSON Variables
name
test_one
Created restaurant name.
HEADERS
Content-Type
Bodyraw
PATCHUpdate restaurant
http://127.0.0.1:8080/restaurants/:name
JSON Variables
name
test_one
New restaurant name.
HEADERS
Content-Type
PATH VARIABLES
name
Bodyraw
Loading