Browse Source

Remove code examples for Python 3.8 in `openapi_webhooks`

pull/14510/head
Yurii Motov 7 months ago
parent
commit
d3280749f1
  1. 2
      docs/en/docs/advanced/openapi-webhooks.md
  2. 0
      docs_src/openapi_webhooks/tutorial001_py39.py
  3. 2
      tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py

2
docs/en/docs/advanced/openapi-webhooks.md

@ -32,7 +32,7 @@ Webhooks are available in OpenAPI 3.1.0 and above, supported by FastAPI `0.99.0`
When you create a **FastAPI** application, there is a `webhooks` attribute that you can use to define *webhooks*, the same way you would define *path operations*, for example with `@app.webhooks.post()`.
{* ../../docs_src/openapi_webhooks/tutorial001.py hl[9:13,36:53] *}
{* ../../docs_src/openapi_webhooks/tutorial001_py39.py hl[9:13,36:53] *}
The webhooks that you define will end up in the **OpenAPI** schema and the automatic **docs UI**.

0
docs_src/openapi_webhooks/tutorial001.py → docs_src/openapi_webhooks/tutorial001_py39.py

2
tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py

@ -1,6 +1,6 @@
from fastapi.testclient import TestClient
from docs_src.openapi_webhooks.tutorial001 import app
from docs_src.openapi_webhooks.tutorial001_py39 import app
client = TestClient(app)

Loading…
Cancel
Save