Documentation
API Playground
- Applies to
- Developer Portalthe documentation site for your API consumers
- Hosting
- Managed EdgeManaged DedicatedSelf-Hosted
You can use this component to allow users to test your API anywhere in your documentation.
This component is only available in MDX files and you can use it directly without any imports:
Code
Hot tip
The Playground can point to any API endpoint, even if it's not in the API catalog.
Props
Code
Examples
Zuplo Echo
In this example, we're using the Zuplo Echo API to test the POST /hello-world/{name} endpoint.
Code
JSON Placeholder
In this example, we're using the JSON Placeholder API to test the GET /photos endpoint. We can
also change the Text on the button to something more specific to the API.
Code
Last modified on