FastAPI에서 아래와 같이 main에서 request를 SQLModel 상속받은 데이터 품은 채로 특정 url(예 : http://0.0.0.0/exec) 같은곳에 보내는 문법 없음? ㅠㅠㅠ 며칠째 찾는데 비슷한것도 못찾겠음 ㅠㅠㅠㅠㅠㅠㅠ


class RequestModel(SQLModel):

    ~~~


@app.post('/')

async def main(~~~):

~~~

request.post(url='/exec'  data=SQLModel클래스_인스턴스)


@app.post('/exec')

async def execution(request):

request_model = await request.data

~~~

request.post(url=~~)