Skip to content

The download button on the API docs doesn't download the Swagger OpenAPI specification; it just re-opens the docs #293

@nutjob4life

Description

@nutjob4life

Checked for duplicates

Yes - I've already checked

🐛 Describe the bug

When viewing the generated API docs, there's a rectangular Download button that promises to download the API specification. However, it just re-opens the docs in a new browser tab.

🕵️ Expected behavior

I expected to have the swagger.yml file appear in my Downloads folder.

📜 To Reproduce

  1. Visit the pds-api homepage: https://nasa-pds.github.io/pds-api/
  2. Click on "Specifications"
  3. Pick any specification, such as "Search API v1.6.0" or "DOI API v0.2"
  4. Next to "Download OpenAPI specification:" click Download
  5. The download doesn't happen; instead a new tab opens with the same doc page

🖥 Environment Info

Platform:

  • macOS 15.6.1

Browsers (reproducible in every browser):

  • Safari 18.6 (20621.3.11.11.3)
  • Edge 139.0.3405.102
  • Chrome 139.0.7258.139
  • Firefox 142.0

Also reproducible on Firefox for Linux Mint (mint-001 - 1.0 - 139.0.4)

📚 Version of Software Used

No response

🩺 Test Data / Additional context

No response

🦄 Related requirements

🦄 #xyz

⚙️ Engineering Details

No response

🎉 Integration & Test

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

ToDo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions