The original project can be found here. This repo is an extension to instrument the code using Open Telemetry and otel-collector
A simple CRUD API created with FastAPI and SQLAlchemy for PostgreSQL
It is recommended to test the available APIs from [GET] /docs
[GET] /
- Root (Check API status)[POST] /books
- Create Book[GET] /books/{id}
- Find Book[GET] /books
- Get Books[PUT] /books
- Update Book[DELETE] /books
- Delete Book
- Install poetry
- Copy
.env.sample
to create.env
and fill the environment variables accordingly - Run
poetry install
to install dependencies - Run
poetry run uvicorn app.main:app
to serve the app
(note: you'll need to have python installed)