Endpoint response snippet
<EndpointResponseSnippet> embeds an endpoint's response example from the API reference.
This component pulls data from the API reference, so it updates automatically with the OpenAPI spec. The examples below reference this site's platform API.
A response example card for an endpoint (alias <ResponseSnippet>), switchable when there are multiple status codes:
<EndpointResponseSnippet endpoint="POST /orgs/{org}/members" example="invited" />{
"invite": {
"url": "https://console.butterix.com/invite/q8Zt3vXc2bN0LmA4pR7sKd1e"
}
}{
"added": true
}{
"error": "That subdomain is taken."
}Props: endpoint (required), example, highlight, with the same meaning as above.
In the page's .md version it's the status, its description, and a code block with the response example.