Authress-Engineering / openapi-explorer

OpenAPI Web component to generate a UI from the spec.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changing the accept header to execute is not UX friendly

gdec31 opened this issue · comments

commented

Changing the accept header works well. But is not really user friendly.
Several of my users don't really understand how to change the format type of the endpoint.

Actual behavior:
image

Expected behavior:

We could have something like this :
image

This is actually configurable by the Accept header, but it isn't obvious because of how it is. Now the accept header will automatically added into the request section to actually support this in a UX friendly way:

image

This is of course customizeable by overwriting the Accept header configuration with your own.