경로 매개변수1 FastAPI - (2) HTTP메소드, URL 매개변수 경로 매개변수 - FastAPI FastAPI framework, high performance, easy to learn, fast to code, ready for production fastapi.tiangolo.com FastAPI 공식 문서의 튜토리얼을 따라가면서 정리해보도록 하겠다. 좀 더 정확한 내용이 보고싶다면 공식 docs를 읽어보는게 좋다. 먼저 지난번에 사용한 코드를 그대로 사용하여 시작한다 from fastapi import FastAPI app = FastAPI() @app.get("/") async def hello(): return {"message": "Hello World!"} # python으로 실행된 파일 명이 main일 때 if __name__ == "__main__".. 2023. 10. 7. 이전 1 다음