Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@
# TODO: Get these values from environment variables instead of hard-coding them.
mongo_client = MongoClient("mongo:27017", username="admin", password="root")

app = FastAPI()
app = FastAPI(
title="BERtron API",
description=(
"[View source](https://github.com/ber-data/bertron/blob/main/src/server.py)\n\n"
f"[BERtron schema](https://ber-data.github.io/bertron-schema/) version: `{get_package_version('bertron-schema')}`"
),
version=get_package_version("bertron"),
Comment thread
eecavanna marked this conversation as resolved.
Comment thread
eecavanna marked this conversation as resolved.
)


@app.get("/", include_in_schema=False)
Expand Down