Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Using Dependency Injector instead of Rodi

This example illustrates how to use Dependency Injector instead of Rodi.

The example supports automatic injection of dependencies in request handlers and controllers' constructors when dependencies are type annotated.

To run the example:

uvicorn main:app

Make requests to "/" and "/controller-test" to test DI resolution in request handlers defined using functions and Controller methods respectively.