Pre-fill API Playground with OpenAPI Examples #759
dzimiks
started this conversation in
Feature Requests
Replies: 2 comments 1 reply
-
Came here to add exactly this to the feedback. This is especially an acute problem when the request is big and complicated. I'll upvote this with a +1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Currently, when users click "Try it" in the API playground, all input fields are empty, even though the OpenAPI spec includes examples for each endpoint and field. This creates unnecessary friction as developers must manually copy-paste or type example values to test endpoints.
Proposed Solution
Auto-populate the API playground form fields with the example values defined in the OpenAPI specification when users click "Try it".
This should work for:
Expected Behavior
Current vs Expected
Current: Empty form fields requiring manual input
Expected: Pre-filled form with working examples, allowing instant testing
Benefits
This feature would significantly improve the developer experience by enabling immediate API testing without manual data entry.
Beta Was this translation helpful? Give feedback.
All reactions