From: Sebastián Ramírez Date: Sat, 15 Dec 2018 14:56:07 +0000 (+0400) Subject: :memo: Update dependencies docs X-Git-Tag: 0.1.11~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba1bcf76ec7c153c26c2e2c3d238304bd2d0e36d;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Update dependencies docs --- diff --git a/docs/tutorial/dependencies/first-steps.md b/docs/tutorial/dependencies/first-steps.md index 76a80c27bb..40f4f588b4 100644 --- a/docs/tutorial/dependencies/first-steps.md +++ b/docs/tutorial/dependencies/first-steps.md @@ -76,7 +76,7 @@ And you can declare dependencies with `async def` inside of normal `def` path op It doesn't matter. **FastAPI** will know what to do. !!! note - If you don't if you should use `async def` or not, check the section about [`async` and `await` in the docs](async.md). + If you don't if you should use `async def` or not, check the section about [`async` and `await` in the docs](/tutorial/async.md). ## Integrated wiht OpenAPI diff --git a/docs/tutorial/dependencies/second-steps.md b/docs/tutorial/dependencies/second-steps.md index 04d68d9ef9..ef673eba24 100644 --- a/docs/tutorial/dependencies/second-steps.md +++ b/docs/tutorial/dependencies/second-steps.md @@ -61,6 +61,12 @@ And now we can use that model in our code, with all the lovable editor support: +## Trees of hierarchical dependencies + +With the **Dependency Injection** system you can build arbitrarily deep trees of hierarchical dependencies (also known as dependency graphs) by having dependencies that also have dependencies themselves. + +You will see examples of these dependency trees in the next chapters about security. + ## Recap By using Pydantic models in your dependencies too you can keep all the editor support that **FastAPI** is designed to support. \ No newline at end of file