Skip to content

refactor: Misc improvements and fixes for API server#549

Merged
mahendrapaipuri merged 2 commits into
mainfrom
maint/api-server/update-oapi-spec-to-v3
Jul 5, 2026
Merged

refactor: Misc improvements and fixes for API server#549
mahendrapaipuri merged 2 commits into
mainfrom
maint/api-server/update-oapi-spec-to-v3

Conversation

@mahendrapaipuri

Copy link
Copy Markdown
Collaborator
  • Apply CORS headers for middleware as well. Until now, CORS headers are applied only for the requests that pass thru middleware. So, when header checks fail in middleware, CORS headers are missing in responses and hence browsers do not treat those responses correctly. Now CORS headers are applied to the middleware as well

  • Generate OAPI spec 3 for swagger docs. Need to replace upstream modules for Swagger UI to work correctly in our case. Add health endpoint to Swagger spec. Move API swagger docs folder out of http folder into api folder to be more consistent

  • Fix health endpoint in deployment docs

Closes #548

* Apply CORS headers for middleware as well. Until now, CORS headers are applied only for the requests that pass thru middleware. So, when header checks fail in middleware, CORS headers are missing in responses and hence browsers do not treat those responses correctly. Now CORS headers are applied to the middleware as well

* Generate OAPI spec 3 for swagger docs. Need to replace upstream modules for Swagger UI to work correctly in our case. Add health endpoint to Swagger spec. Move API swagger docs folder out of http folder into api folder to be more consistent

* Fix health endpoint in deployment docs

Closes #548

Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
@mahendrapaipuri mahendrapaipuri merged commit a9cfb20 into main Jul 5, 2026
16 checks passed
@mahendrapaipuri mahendrapaipuri deleted the maint/api-server/update-oapi-spec-to-v3 branch July 5, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance General maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Out-of-date API endpoint information in deployment guide

1 participant