Form Data
say it: “FORM DAY-tuh” /fɔːrm ˈdeɪtə/
Reads HTML form fields instead of JSON.
What is Form Data?
Use Form() to read HTML form fields instead of JSON.
@app.post('/login')
def login(username: Annotated[str, Form()], password: Annotated[str, Form()]):
...
Level: Journeyman · More FastAPI terms at this level
Updated