{{#unless hasOwnDocument}}

### {{#ifNamedAnchors}} <a id="{{anchor}}" name="{{this.anchor}}"></a> {{/ifNamedAnchors}}`{{name}}`

{{#if hasComment}}
{{> comment}}
<!-- comment source: {{commentSource}} -->
{{/if}}

#### Route

`{{httpMethod}} {{route}}`

{{#if parameters}}

#### Parameters

{{#with parameters}}

{{{parameterTable}}}

{{/with}}

{{else}}
{{! the required/optional parameters bits are fallbacks }}
{{#if hasRequiredParams}}

##### Required Parameters

{{#each requiredParams}}
- `{{this}}`
{{/each}}

{{/if}}

{{#if hasOptionalParams}}

##### Optional Parameters

{{#each optionalParams}}
- `{{this}}`
{{/each}}

{{/if}}
{{/if}}

{{#if hasExample}}
#### {{pluralize 'Example' examples.length}}

<!-- BEGIN:EXAMPLES -->
{{#each examples}}
##### {{lang}}
<!-- BEGIN:EXAMPLE lang={{lang}} -->

{{{text}}}

<!-- END:EXAMPLE -->
{{/each}}
<!-- END:EXAMPLES -->
{{/if}}
{{#if signature}}

#### Response

{{#with signature}}

{{#with type}}

{{{type 'all'}}}

{{/with}}

{{#with comment}}

{{{returns this}}}

{{/with}}

{{#with type}}

{{#if declaration.signatures}}

{{#each declaration.signatures}}

{{> member.signature showSources=false }}

{{/each}}

{{/if}}

{{/with}}

{{/with}}
{{/if}}
{{/unless}}
