1. http://127.0.0.1:8000/docs를 검색한다.
전에 우리가 쓴 코드
from fastapi import FastAPI()
app = FastAPI()
@app.get("/")
def Idex():
return{"message":"Hello world"}
'IT 공부 > FastAPI' 카테고리의 다른 글
[FastAPI] 로컬 서버 만들기 (0) | 2023.06.28 |
---|---|
[FastAPI] 기본 환경 설정(파이썬 설치 + 가상환경 + fastapi,uvicorn설치) (0) | 2023.06.28 |