Skip to content

Commit

Permalink
Docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
maldoinc committed Dec 28, 2023
1 parent 99d8b58 commit 6f446b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/pages/integrations/fastapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Dependency injection for FastAPI (all versions) is available via the first-party
As FastAPI does not have a fixed configuration mechanism, you need to expose
any configuration objects to the container using one of the two options:

* By dumping all values in the parameter bag
* By dumping all values in the parameter bag.
* Registering the configuration object as a service using a factory function.

## Examples
Expand All @@ -30,6 +30,8 @@ async def target(
# Wire annotation tells wireup that this argument should be injected
random_service: Annotated[RandomService, Wire()],
is_debug: Annotated[bool, Wire(param="env.debug")],

# This is a regular FastAPI dependency.
lucky_number: Annotated[int, Depends(get_lucky_number)]
):
return {
Expand Down

0 comments on commit 6f446b6

Please sign in to comment.