Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 603 Bytes

File metadata and controls

35 lines (22 loc) · 603 Bytes

Request Parameters

Here's the reference information for the request parameters.

These are the special functions that you can put in path operation function parameters or dependency functions with Annotated to get data from the request.

It includes:

  • Query()
  • Path()
  • Body()
  • Cookie()
  • Header()
  • Form()
  • File()

You can import them all directly from fastapi:

from fastapi import Body, Cookie, File, Form, Header, Path, Query

::: fastapi.Query

::: fastapi.Path

::: fastapi.Body

::: fastapi.Cookie

::: fastapi.Header

::: fastapi.Form

::: fastapi.File