API Components
Response Fields
Display API response values
The <ResponseField>
component defines API return values and can be used to list types in documentation.
response
string
requiredA response field example
Props
name
string
requiredThe name of the response value.
type
string
requiredExpected type of the response value
default
string
The default value.
required
boolean
Show “required” beside the field name.
Was this page helpful?