Skip to content

Conversation

@priyanshu6238
Copy link
Contributor

Target issue is #31

Context:
The Swagger UI (/docs) was showing a long list of internal or unused endpoints that are not relevant for production usage or external consumers.

What’s Done:

  • Applied include_in_schema=False to internal or deprecated routes to hide them from Swagger documentation.
  • This keeps the API docs clean and focused only on relevant public endpoints.

Ran fastapi run --reload app/main.py or docker compose up in the repository root and test.
If you've fixed a bug or added code that is tested and has test cases.
Notes

  • Ran fastapi run --reload app/main.py or docker compose up in the repository root and test.
  • If you've fixed a bug or added code that is tested and has test cases.

Notes

Please add here if any other information is required for the reviewer.

@AkhileshNegi AkhileshNegi mentioned this pull request May 7, 2025
2 tasks
@codecov
Copy link

codecov bot commented May 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

…ndpoints to exclude them from the OpenAPI schema documentation.
…nts, excluding them from OpenAPI schema documentation.
…spaces after commas in response model declarations and ensuring consistent formatting across endpoints.
….py to include it in OpenAPI schema documentation; clean up the read_credential endpoint in credentials.py by removing the same flag for consistency.
….py to include it in OpenAPI schema documentation, ensuring consistency with other endpoints.
Copy link
Collaborator

@nishika26 nishika26 left a comment

Choose a reason for hiding this comment

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

Why are my comments being resolved when no changes are being made, please don't hide any endpoint from credentials and document router for now

@AkhileshNegi AkhileshNegi merged commit f80befa into main May 9, 2025
2 checks passed
@AkhileshNegi AkhileshNegi deleted the swagger_1 branch May 9, 2025 04:25
@AkhileshNegi AkhileshNegi linked an issue May 12, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Swagger UI: Simplify

4 participants