{{/* Render the response part of a single HTTP API operation, given: * `responses`: OpenAPI data specifying the responses * `anchor_base`: a prefix to add to the HTML anchors generated for each object This template renders: * a summary of all the different responses * details of the body for each response code * body parameters, which may be more complex, containing nested objects * response body examples */}} {{ $responses := .responses }} {{ $anchor_base := .anchor_base }}
Status | Description | {{ range $code, $response := $responses }}
---|---|
{{ $code }} |
{{ $response.description | markdownify }} |
Array of {{ $type_of }}
.