Browse Source

docs: clarify unsupported HTTP methods like QUERY (#12965)

pull/14242/head
Shubhadeep Mohanta 9 months ago
parent
commit
7f0ecbd8eb
  1. 1
      docs/en/docs/release-notes.md
  2. 11
      docs/en/docs/tutorial/path-operation-configuration.md

1
docs/en/docs/release-notes.md

@ -9,6 +9,7 @@ hide:
### Internal
* ⬆ Bump actions/download-artifact from 5 to 6. PR [#14236](https://github.com/fastapi/fastapi/pull/14236) by [@dependabot[bot]](https://github.com/apps/dependabot).
* ⬆ [pre-commit.ci] pre-commit autoupdate. PR [#14237](https://github.com/fastapi/fastapi/pull/14237) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
* ⬆ Bump actions/upload-artifact from 4 to 5. PR [#14235](https://github.com/fastapi/fastapi/pull/14235) by [@dependabot[bot]](https://github.com/apps/dependabot).

11
docs/en/docs/tutorial/path-operation-configuration.md

@ -105,3 +105,14 @@ Check how deprecated and non-deprecated *path operations* look like:
## Recap { #recap }
You can configure and add metadata for your *path operations* easily by passing parameters to the *path operation decorators*.
## Recap { #recap }
You can configure and add metadata for your *path operations* easily by passing parameters to the *path operation decorators*.
!!! note
FastAPI supports all standard HTTP methods such as `GET`, `POST`, `PUT`, `PATCH`, and `DELETE`.
Methods like `QUERY` are **not part of the official HTTP specification** (see RFC 9110) and therefore are not supported.
If you need query-like behavior, use `GET` with query parameters or design an appropriate API route.

Loading…
Cancel
Save