Document request parameters
Use<ParamField> for path, query, body, and header parameters. The prop identifies where the parameter belongs. Add its type and whether it is required, then describe any limits a reader could otherwise miss.
Example of request parameters
<ParamField> to a page also adds an API playground, where readers can fill in the parameters and send a real request. If a parameter is being phased out, add deprecated so readers see it before they build on it.
Describe response fields
Use<ResponseField> for values returned by the API:
Example of a response field
<Expandable> inside its parent field. Readers can see that id and email belong to user without having every child property open by default.
Example of nested response fields
Pair requests with responses
<RequestExample> and <ResponseExample> show the complete exchange in the page’s side panel. Start with a successful request, then add the error responses readers are likely to encounter.
Example of request and response examples