Skip to content

hyuckang/FastAPI-sample-app

 
 

Repository files navigation

FastAPI-sample-app

  • FAST API, PostgreSQL, pgAdmin, docker-compose를 이용한 REST API 구축

  • Create Pizza POST /pizza

    1. 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
      }'
    2. Response

      {"pizza_id":1}
  • Get Pizza GET /pizza/{id}

    1. Request

      curl -X 'GET' \
        'http://{IP Address}:8000/pizza/{id}' \
        -H 'accept: application/json'
    2. Response

      {"name":"Goguma Pizza","price":15000,"is_cheese_stuffed":true}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.3%
  • Mako 8.3%
  • Dockerfile 3.4%
  • Shell 1.0%