{{/* Render the response part of a single HTTP API operation, given: * `responses`: OpenAPI data specifying the responses * `path`: the path where this definition was found, to enable us to resolve "$ref" * `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 }} {{ $path := .path }} {{ $anchor_base := .anchor_base }}
Status | Description | {{ $responses = partial "json-schema/resolve-refs" (dict "schema" $responses "path" $path) }} {{ range $code, $response := $responses }}
---|---|
{{ $code }} |
{{ $response.description | markdownify }} |
Array of {{ $type_of }}
.