]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Update includes in `docs/en/docs/advanced/openapi-webhooks.md` (#12605)
authorMohamed Salman <mohamed.akj@gmail.com>
Mon, 28 Oct 2024 10:38:23 +0000 (16:08 +0530)
committerGitHub <noreply@github.com>
Mon, 28 Oct 2024 10:38:23 +0000 (10:38 +0000)
docs/en/docs/advanced/openapi-webhooks.md

index eaaa48a37ee23392a78024b597ca000fd1b572db..97aaa41af96f69e74f46f6b716e27a9071f8ebbd 100644 (file)
@@ -32,9 +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()`.
 
-```Python hl_lines="9-13  36-53"
-{!../../docs_src/openapi_webhooks/tutorial001.py!}
-```
+{* ../../docs_src/openapi_webhooks/tutorial001.py hl[9:13,36:53] *}
 
 The webhooks that you define will end up in the **OpenAPI** schema and the automatic **docs UI**.