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

Permit selection of specific Accept header values in "Send API Request" #2490

Open
6 tasks
SunsetFi opened this issue Jan 3, 2024 · 1 comment
Open
6 tasks
Labels
enhancement New feature or request triaged

Comments

@SunsetFi
Copy link

SunsetFi commented Jan 3, 2024

User Story Description

As an API validator,

I want to run API requests against specific Accept header media types,

so I can validate the server sends back the appropriately formatted data.

Acceptance Criteria

  • The 'Send API Request' button sends an Accept header equal to the media type selected in the Body description's media type dropdown.

Sprint Ready Checklist

  • Acceptance criteria defined
  • Team understands acceptance criteria
  • Team has defined solution / steps to satisfy acceptance criteria
  • Acceptance criteria is verifiable / testable
  • External / 3rd Party dependencies identified
@SunsetFi
Copy link
Author

SunsetFi commented Jan 4, 2024

The current behavior is to send an Accept header containing every documented return type (eg: Accept: foo/bar foo/baz). In practice, this makes our server choose the first entry. This prevents us from testing that the format for the alternate media types are respected.

@chohmann chohmann added enhancement New feature or request triaged labels Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged
Projects
None yet
Development

No branches or pull requests

2 participants