-
FAST API, PostgreSQL, pgAdmin, docker-compose를 이용한 REST API 구축
-
Create Pizza
POST /pizza-
Request
curl -X 'POST' \ 'http://{IP Address}:8000/pizza/' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "name": "Goguma Pizza", "price": 15000, "is_cheese_stuffed": true }'
-
Response
{"pizza_id":1}
-
-
Get Pizza
GET /pizza/{id}-
Request
curl -X 'GET' \ 'http://{IP Address}:8000/pizza/{id}' \ -H 'accept: application/json'
-
Response
{"name":"Goguma Pizza","price":15000,"is_cheese_stuffed":true}
-
forked from ggingmin/FastAPI-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
hyuckang/FastAPI-sample-app
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 87.3%
- Mako 8.3%
- Dockerfile 3.4%
- Shell 1.0%