You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ws): honor PORT in swagger UI and clean up backend README
This commit makes 2 improvements to our existing Swagger implementation in the `backend` component
- overrides openapi.SwaggerInfo.Host at runtime to ensure the `PORT` value (which may have been overriden to != `4000`) is properly reflected in the generated Swagger HTML
- Updates the `backend` `README.md` to instruct _the reader_ to run the `backend` application and visit the Swagger webpage to learn about the available APIs.
- Removal of the markdown table and sample calls helps remove pointless developer toil and/or potential of stale/conflicting info as that information had to be manually maintained.
Signed-off-by: Andy Stoneberg <[email protected]>
If you wish to understand which handlers service the various endpoints, you can find the mapping in the `Routes()` function in [`app.go`](./api/app.go).
0 commit comments