I am trying to read body from my POST request using FastAPI.
However i am not able to understand what (...)
argument for the Body function
Here is my code :
@app.post('/createPosts')
def create_post(payload: dict = Body(...)):
print(payload)
return {'message': 'succesfully created post'}