Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@samcorky
Copy link
Contributor

/docs endpoint now pulls in smib/webserver/README.md as its description

Refactored smib/webserver/main.py slightly, grouping the /smib/events path endpoints together so they share common settings for the swagger docs

samcorky added 2 commits May 12, 2024 15:54
…gets pulled into the swagger docs (/docs endpoint)

Update dependencies, add version retrieval function, and README.md rendering

This commit updates the 'dataclasses-json' package and removes an unnecessary PyYAML wheel file from 'poetry.lock'. It also introduces 'get_version()' in 'utils.py' and modifies 'smib-fast.Dockerfile' to enable the root package installation with Poetry. Additionally, it includes a change to render the 'smib/webserver/README.md' file in the FastAPI app.
Refactored the webserver main to extract logic into separate functions for better code maintainability and readability. Also updated the README.md file of the webserver to contain more detailed information about the APIs, the server, and its endpoints, and improved error handling with specific responses for certain status codes.
@samcorky samcorky requested a review from sjefferson99 May 28, 2024 18:59
@samcorky samcorky linked an issue May 28, 2024 that may be closed by this pull request
Copy link
Member

@sjefferson99 sjefferson99 left a comment

Choose a reason for hiding this comment

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

Good.

@sjefferson99 sjefferson99 merged commit 6348619 into develop May 29, 2024
@sjefferson99 sjefferson99 deleted the 9-swagger-docs branch May 29, 2024 19:42
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.

Add/improve Swagger docs in fastapi

3 participants