/fastapi-example

FastAPI example project that includes an API, Swagger documentation, and unit tests, and uses Pydantic, SQLAlchemy, and Docker for efficient request handling, data modeling, database interaction, and containerization.

Primary LanguagePython

FastAPI Example

This api project was done with FastAPI, Pydantic and Docker. It is composed of an api, a swagger documentation and unit tests.

How run the API ?

For run the api, you need to install docker & docker-compose.

Run command :

docker-compose up --build -d

When docker is run, a swagger documentation is available at the address: 0.0.0.0:8000/docs

How run the test ?

Run command :

./run-test.sh