38 lines
604 B
Handlebars
38 lines
604 B
Handlebars
|
== Responses
|
||
|
{{!-- complex (object) types --}}
|
||
|
{{#each swagger.responses}}
|
||
|
=== {{@key}}
|
||
|
:hardbreaks:
|
||
|
{{description}}
|
||
|
|
||
|
{{#if headers}}
|
||
|
==== Headers
|
||
|
[options="header"]
|
||
|
|===
|
||
|
|Name|Description|Schema|Example
|
||
|
{{#each headers}}
|
||
|
{{~> propertiesRow}}
|
||
|
{{/each}}
|
||
|
|===
|
||
|
{{/if}}
|
||
|
{{#if schema}}
|
||
|
==== Schema
|
||
|
[options="header"]
|
||
|
|===
|
||
|
|Name|Description|Schema|Example
|
||
|
{{#with schema}}
|
||
|
{{#if $ref}}
|
||
|
{{#swaggerRef $ref}}
|
||
|
{{#each properties}}
|
||
|
{{~> propertiesRow}}
|
||
|
{{/each}}
|
||
|
{{/swaggerRef}}
|
||
|
{{/if}}
|
||
|
{{#each properties}}
|
||
|
{{~> propertiesRow}}
|
||
|
{{/each}}
|
||
|
{{/with}}
|
||
|
|===
|
||
|
{{/if}}
|
||
|
{{/each}}
|