Skip to content

Conversation

@emmanuel-ferdman
Copy link

Description

Updated Request and Response components to check for proxy URL in addition to servers when deciding whether to show the API explorer UI.

Motivation and Context

Fixes #1245 - The "Send API Request" button was not visible when an OpenAPI spec had no servers defined, even when a proxy URL was configured via frontmatter or themeConfig.

How Has This Been Tested?

  • Created a test OpenAPI spec with no servers defined.
  • Added proxy https://example.com in frontmatter.
  • Verified the Send API Request button and Response section now render correctly.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Send API request button is not visible when serverl url is absent but proxy-URL is present

1 participant