{{/* Render the response part of a single HTTP API operation, given: * `responses`: OpenAPI/Swagger 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 | {{ range $code, $response := $responses }}
---|---|
{{ $code }} |
{{ $response.description | markdownify }} |
Array of {{ $type_of }}
.