Closed trajan0x closed 3 weeks ago
The changes introduce a new GET endpoint at /swagger.json
in the Express application, which serves the Swagger specifications in JSON format. The existing middleware for logging requests and responses, as well as error handling mechanisms, remain unchanged. This new route integrates into the existing application structure without affecting the overall control flow.
File | Change Summary |
---|---|
packages/rest-api/src/app.ts | Added a GET route /swagger.json that returns specs in JSON format. |
/swagger.json
endpoint introduced in the main PR.go
, needs-go-generate-services/explorer
, size/l
, needs-go-generate-committee
, needs-go-generate-sin-executor
In the code where rabbits hop,
A new route blooms, we cannot stop!
/swagger.json
now takes its place,
With specs in JSON, a joyful embrace.
Hopping along, the logs still flow,
In our API garden, watch it grow! πβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 90.44834%. Comparing base (
47194e6
) to head (96aa00d
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Latest commit: |
96aa00d
|
Status: | β Deploy successful! |
Preview URL: | https://4c4e1eb9.sanguine-fe.pages.dev |
Branch Preview URL: | https://fix-serve-swagger.sanguine-fe.pages.dev |
Description
Serve swagger
Summary by CodeRabbit
New Features
/swagger.json
to retrieve API specifications in JSON format.Bug Fixes