Answer the question
In order to leave comments, you need to log in
Why doesn't FastAPI process such a request with the appropriate handler?
I have a function like this:
@app.post("/api/parse/{network}/{page_id}")
async def process(network: str, page_id: str):
# код
requests.post("http://localhost/api/parse/VK/1")
"POST /api/parse/VK/1 HTTP/1.0" 404 Not Found
/api/parse/sometext/sometext
/api/parse/{str}/{str}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question