Closed ANIALLATOR114 closed 3 days ago
This pull request updates the documentation and makes several improvements to the OpenAPI configuration, parameter handling, and OpenTelemetry integration in the SimplyTransport project. The changes include updating the OpenAPI configuration, refactoring parameter examples, modifying the app configuration, adding a new API documentation viewer, updating the OpenTelemetry setup, and adding integration tests for the documentation endpoints.
sequenceDiagram
participant App
participant OpenAPIConfig
participant RenderPlugins
App->>OpenAPIConfig: Request configuration
OpenAPIConfig->>RenderPlugins: Create render plugins with favicon
RenderPlugins-->>OpenAPIConfig: Return render plugins
OpenAPIConfig-->>App: Return updated configuration
Change | Details | Files |
---|---|---|
Update OpenAPI configuration |
|
SimplyTransport/lib/openapi/openapiconfig.py |
Refactor parameter examples |
|
SimplyTransport/lib/parameters/orderby_shapes.py SimplyTransport/lib/parameters/examples.py |
Modify app configuration |
|
SimplyTransport/app.py |
Add Scalar API documentation viewer |
|
SimplyTransport/templates/api_docs.html |
Update OpenTelemetry setup |
|
SimplyTransport/lib/opentelemetry.py |
Add integration tests for documentation endpoints |
|
tests/integration/test_website_docs_200s.py |
Summary by Sourcery
Enhance the OpenAPI documentation by adding multiple render plugins and updating the API documentation page. Introduce a new OpenTelemetry plugin for improved observability and refactor the application to use it. Add examples for order by parameters and implement integration tests to verify documentation endpoints.
New Features:
Enhancements:
Documentation:
Tests: