Components

Param field

Document request parameters with location and type badges.

Use ParamField for query, path, header, or body parameters, and Param for inline parameter names.

Basic usage#

limitquerynumberrequired

Maximum number of records to return.

Location variants#

userIdpathstringrequired

User id in the URL path.

Authorizationheaderstringrequired

Bearer token.

The location badge is inferred from query, path, header, or body. If several are set, precedence is querypathheaderbody. The display label is name, or the first location prop value when name is omitted.

Inline parameter names#

Set limit and offset together for pagination.

Properties#

ParamField#

NameTypeDescription
namestring

Display label for the parameter.

querystring

Query parameter name. Marks the field as a query param.

pathstring

Path parameter name. Marks the field as a path param.

headerstring

Header name. Marks the field as a header param.

bodystring

Body field name. Marks the field as a body param.

typestring

Type label shown next to the name.

requiredboolean

Shows a required badge.

Default: false
childrenReactNode

Parameter description.

Param#

NameTypeDescription
childrenReactNode

Inline parameter name rendered as code.

Last updated on