Endpoint schema snippet
The <EndpointSchemaSnippet> component displays endpoint schemas from your API Reference. By default, it renders the complete schema, or you can use the selector prop to display specific parts like request body, response, path parameters, or query parameters.
To display any type definition by name (not limited to endpoint schemas), use the <Schema> component.
Markdown-rich field descriptions aren’t yet supported and will display as plain text. See the Request path example below.
Usage
Path parameters
Request
Response
Variants
Full request
Passing request as the selector will only render the request schema.
Path parameters
Request
Request path
Path parameters
Request query
Query parameters
Request body
Request
Full response
Passing response as the selector will only render the response schema.
Response
Response body
Response
Properties
The endpoint to display, in the format METHOD /path (e.g., POST /chat/{domain}). If your API uses namespaces, prefix with the namespace and :: (e.g., payments::POST /chat/{domain}).
Selects a specific part of the endpoint schema to display. Supported values: request, request.path, request.query, request.body, response, response.body.