Developing and Testing an Asynchronous API with FastAPI and Pytest
- FastAPI
- Docker
- Python
- pytest
- Develop an asynchronous RESTful API with Python and FastAPI
- Practice Test-driven Development
- Test a FastAPI app with pytest
- Interact with a Postgres database asynchronously
- Containerize FastAPI and Postgres inside a Docker container
- Parameterize test functions and mock functionality in tests with pytest
- Document a RESTful API with Swagger/OpenAPI
.
├── docker-compose.yml
├── LICENSE
├── README.md
└── src
├── app
│ ├── core
│ │ ├── create_app.py
│ │ ├── docs
│ │ │ ├── __init__.py
│ │ │ ├── __pycache__
│ │ │ │ └── __init__.cpython-310.pyc
│ │ │ └── templates
│ │ │ └── docs.html
│ │ ├── __init__.py
│ │ ├── __pycache__
│ │ │ ├── create_app.cpython-310.pyc
│ │ │ ├── __init__.cpython-310.pyc
│ │ │ └── settings.cpython-310.pyc
│ │ └── settings.py
│ ├── __init__.py
│ ├── main.py
│ ├── posts
│ └── __pycache__
│ └── main.cpython-310.pyc
├── requirements.txt
├── tests
└── venv
└── include