Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Swagger documentation handling in the API (#98)
### TL;DR Makes /openapi.json return the same as /swagger/docs.json ### What changed? - Modified the `/openapi.json` endpoint to dynamically serve Swagger documentation. - Replaced static file serving with dynamic generation of Swagger documentation. ### How to test? 1. Start the API server. 2. Navigate to the `/openapi.json` endpoint. 3. Verify that the Swagger documentation is served correctly. ### Why make this change? This change improves the flexibility and reliability of Swagger documentation serving. By dynamically generating the documentation, it ensures that the API always serves the most up-to-date version without relying on static files. The added error handling also improves the robustness of the API, providing clear feedback if there are issues with the Swagger documentation.
- Loading branch information