Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions SPRINTLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -712,3 +712,4 @@ _Nothing merged during this sprint_
- Bump dnspython from 2.9.0 to 2.9.2 ([#1893]https://github.com/ScilifelabDataCentre/dds_web/pull/1893)
- Fix missing host in email links in local dev after Werkzeug 3.1.7+ bump ([#1894]https://github.com/ScilifelabDataCentre/dds_web/pull/1894)
- HMS-2698: Skip init-db when development db is already filled ([#1895]https://github.com/ScilifelabDataCentre/dds_web/pull/1895)
- HMS-2123: Point Swagger UI to the new testing URL ([#1896]https://github.com/ScilifelabDataCentre/dds_web/pull/1896)
2 changes: 1 addition & 1 deletion dds_web/static/swaggerv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ security:
servers:
- url: https://delivery.scilifelab.se/api/v3
description: Endpoint for the production server
- url: https://dds-dev.dckube3.scilifelab.se/api/v3
- url: https://testing.delivery.scilifelab.se/api/v3/
description: Endpoint for the test server
# Uncomment when local testing

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a relative server URL would solve it. With - url: /api/v3 the docs page on each instance (prod, testing, dev, local) points to itself, and we could drop the "Uncomment when local testing" lines as well. The Swagger UI we ship resolves a relative server URL against the host the page is on.

The hardcoded hosts don't work across instances in "Try it out" anyway, since neither prod nor testing sends CORS headers. So on the prod docs page, picking the test server gets blocked by the browser.

Not necessarily a blocker since it works.

# - url: http://localhost:5000/api/v3
Expand Down
Loading