Pre-fill API Playground with OpenAPI Examples #759
Replies: 5 comments 2 replies
-
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.
-
Beta Was this translation helpful? Give feedback.
-
Example request bodies is a well-supported feature of OpenAPI schemas, it would be great to have these be useable in Mintlify! Working around using defaults is often not particularly viable, especially when you're trying to give examples for required fields. Would be a really useful feature, massive +1. |
Beta Was this translation helpful? Give feedback.
-
I also came here to add exactly this. Using the If I want my clients to be able to use the playground in one click, I would have to add a default value to fields that don't have a default value in my code. And that could be misleading to clients. |
Beta Was this translation helpful? Give feedback.
-
Hi @handotdev and @hahnbeelee, it looks like many of us want this particular feature. Can you make it a higher priority, since it looks like it should be a small lift from your end? It's the most requested feature, and we are still waiting for months. Do you need any kind of help or additional context to make it live? 🙏 |
Beta Was this translation helpful? Give feedback.
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