Components
API Playground
This documentation is for the preview version of the Dev Portal. If you are using the legacy developer portal, please refer to the docs.
You can use this component to allow users to test your API anywhere in your documentation.
This component is only available in MDX files. You can just use it directly without any imports:
Code(tsx)
Hot tip
The Playground can point to any API endpoint, even if it's not in the API catalog.
Props
Code(ts)
Examples
Zuplo Echo
In this example, we're using the Zuplo Echo API to test the POST /hello-world/{name}
endpoint.
Code(tsx)
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(tsx)
Last modified on