Skip to content

Display API version number at top of Swagger UI page#66

Merged
eecavanna merged 2 commits intomainfrom
65-display-api-version-number-in-swagger-ui-header
Jul 18, 2025
Merged

Display API version number at top of Swagger UI page#66
eecavanna merged 2 commits intomainfrom
65-display-api-version-number-in-swagger-ui-header

Conversation

@eecavanna
Copy link
Copy Markdown
Collaborator

@eecavanna eecavanna commented Jul 18, 2025

On this branch, I customized the Swagger UI header. Specifically, I made it so the header shows the same package version number as the /version endpoint returns, which comes from pyproject.toml. I also replaced the default "FastAPI" title with "BERtron API". Finally, I added a description that links to the GitHub repository and shows the schema version.

@eecavanna eecavanna self-assigned this Jul 18, 2025
@eecavanna eecavanna linked an issue Jul 18, 2025 that may be closed by this pull request
@eecavanna eecavanna requested a review from Copilot July 18, 2025 07:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR customizes the Swagger UI interface by updating the FastAPI application configuration to display project-specific branding and version information instead of default values.

  • Replaces default "FastAPI" title with "BERtron API"
  • Adds description with GitHub source link and BERtron schema version
  • Sets API version to match the package version from pyproject.toml

Comment thread src/server.py
Comment thread src/server.py
@eecavanna eecavanna merged commit 4623d9f into main Jul 18, 2025
2 checks passed
@eecavanna eecavanna deleted the 65-display-api-version-number-in-swagger-ui-header branch July 18, 2025 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display API version number in Swagger UI header

2 participants