Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Request Headers for OpenAPI 3.0 #5339

Open
srlintag opened this issue May 2, 2019 · 3 comments
Open

Display Request Headers for OpenAPI 3.0 #5339

srlintag opened this issue May 2, 2019 · 3 comments

Comments

@srlintag
Copy link

srlintag commented May 2, 2019

Are there any plans on implementing to display request headers in the current UI? I see that the last response to issue #1501 was a few years ago and I haven't seen any that specify the new UI lately.

@leggsimon
Copy link
Contributor

What do you mean by this? Do you mean displaying what request headers should be sent with a request to a certain endpoint? If so then you can define them as parameters and then they will display for the route as parameters.

Given this path definition:

  /blah:
    get:
      description: Some description.
      parameters:
        - in: header
          name: X-Api-Key
          schema:
            type: string
            format: uuid
          required: true
          description: API key
      responses:
        ...

Will render this UI:
Screen Shot 2019-05-11 at 16 48 08

@srlintag
Copy link
Author

Ah no, I mean in the response section, the request headers do not display anymore.
Here is an old version with the request headers displaying

swagger2 0

Is there a way to configure this to display on the current UI?

@dddhhhjjj
Copy link

感谢,成功解决问题

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

No branches or pull requests

3 participants