mirror of
https://github.com/longbridge/developers.git
synced 2026-09-19 03:34:09 +08:00
f83a06ba5d
This reverts commit 10b3e7bfba.
101 lines
2.3 KiB
Plaintext
101 lines
2.3 KiB
Plaintext
{{= data.tags.section }}
|
|
|
|
{{? data.api.info && data.api.info.description}}{{=data.api.info.description}}{{?}}
|
|
|
|
{{ for (var r in data.resources) { }}
|
|
{{ data.resource = data.resources[r]; }}
|
|
|
|
{{= data.tags.section }}
|
|
|
|
{{? data.resource.description }}{{= data.resource.description}}{{?}}
|
|
|
|
{{? data.resource.externalDocs}}
|
|
<a href="{{=data.resource.externalDocs.url}}">{{=data.resource.externalDocs.description||'External documentation'}}</a>
|
|
{{?}}
|
|
|
|
{{ for (var m in data.resource.methods) { }}
|
|
{{ data.operationUniqueName = m; }}
|
|
{{ data.method = data.resource.methods[m]; }}
|
|
{{ data.operationUniqueSlug = data.method.slug; }}
|
|
{{ data.operation = data.method.operation; }}
|
|
{{= data.templates.operation(data) }}
|
|
{{ } /* of methods */ }}
|
|
|
|
{{= data.tags.endSection }}
|
|
{{ } /* of resources */ }}
|
|
|
|
{{? data.api.components && data.api.components.schemas }}
|
|
{{= data.tags.section }}
|
|
|
|
## Schemas
|
|
|
|
{{ for (var s in data.components.schemas) { }}
|
|
{{ var origSchema = data.components.schemas[s]; }}
|
|
{{ var schema = data.api.components.schemas[s]; }}
|
|
|
|
{{= data.tags.section }}
|
|
### {{=s}}
|
|
|
|
<a id="schema{{=s}}"></a>
|
|
<a id="schema{{=s.toLowerCase()}}"></a>
|
|
|
|
|
|
{{ var enums = []; }}
|
|
{{ var blocks = data.utils.schemaToArray(origSchema,-1,{trim:true,join:true},data); }}
|
|
{{ for (var block of blocks) {
|
|
for (var p of block.rows) {
|
|
if (p.schema && p.schema.enum) {
|
|
for (var e of p.schema.enum) {
|
|
enums.push({name:p.name,value:e});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}}
|
|
|
|
{{~ blocks :block}}
|
|
{{? block.title }}{{= block.title}}{{= '\n\n'}}{{?}}
|
|
{{? block.externalDocs}}
|
|
<a href="{{=block.externalDocs.url}}">{{=block.externalDocs.description||'External documentation'}}</a>
|
|
{{?}}
|
|
|
|
{{? block===blocks[0] }}
|
|
{{= data.tags.section }}
|
|
|
|
{{?}}
|
|
|
|
{{? block.rows.length}}|Name|Type|Required|Description|
|
|
|---|---|---|---|{{?}}
|
|
{{~ block.rows :p}}|{{=p.displayName}}|{{=p.safeType}}|{{=p.required}}|{{=p.description||' '}}|
|
|
{{~}}
|
|
{{~}}
|
|
{{? (blocks[0].rows.length === 0) && (blocks.length === 1) }}
|
|
*None*
|
|
{{?}}
|
|
|
|
{{? enums.length > 0 }}
|
|
{{= data.tags.section }}
|
|
|
|
##### Enumerated Values
|
|
|
|
|Property|Value|
|
|
|---|---|
|
|
{{~ enums :e}}|{{=e.name}}|{{=data.utils.toPrimitive(e.value)}}|
|
|
{{~}}
|
|
|
|
{{= data.tags.endSection }}
|
|
{{?}}
|
|
|
|
{{= data.tags.endSection }}
|
|
{{= data.tags.endSection }}
|
|
|
|
{{ } /* of schemas */ }}
|
|
|
|
{{?}}
|
|
|
|
{{#def.footer}}
|
|
|
|
{{? data.options.discovery}}
|
|
{{#def.discovery}}
|
|
{{?}}
|