mirror of
https://github.com/longbridge/developers.git
synced 2026-09-19 03:34:09 +08:00
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
{{= data.tags.section }}
|
|
|
|
{{ data.methodUpper = data.method.verb.toUpperCase(); }}
|
|
{{ data.url = data.utils.slashes(data.baseUrl + data.method.path); }}
|
|
{{ data.parameters = data.operation.parameters; }}
|
|
{{ data.enums = []; }}
|
|
{{ data.utils.fakeProdCons(data); }}
|
|
{{ data.utils.fakeBodyParameter(data); }}
|
|
{{ data.utils.mergePathParameters(data); }}
|
|
{{ data.utils.getParameters(data); }}
|
|
|
|
{{? data.options.codeSamples || data.operation["x-code-samples"] }}
|
|
```
|
|
Code samples
|
|
```
|
|
|
|
{{= data.utils.getCodeSamples(data) }}
|
|
{{?}}
|
|
|
|
## {{? data.operation.summary && !data.options.tocSummary}}{{= data.operation.summary }}{{?}}
|
|
|
|
{{? data.operation.description}}{{= data.operation.description }}{{?}}
|
|
|
|
### Request
|
|
|
|
<table className="http-basic">
|
|
<tbody>
|
|
<tr><td className="http-basic-key">HTTP Method</td><td>{{= data.methodUpper }}</td></tr>
|
|
<tr><td className="http-basic-key">HTTP URL</td><td>{{=data.method.path}} {{? data.operation.deprecated }}<div className="http-operation-deprecated">Deprecated</div>{{?}}</td></tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
{{? data.operation.requestBody}}
|
|
|
|
{{= data.utils.getBodyParameterExamples(data) }}
|
|
{{?}}
|
|
|
|
{{? data.parameters && data.parameters.length }}
|
|
{{#def.parameters}}
|
|
{{?}}
|
|
|
|
{{? data.operation.request_body }}
|
|
{{#def.request_example}}
|
|
{{?}}
|
|
|
|
{{#def.responses}}
|
|
|
|
{{#def.callbacks}}
|
|
|
|
{{ data.security = data.operation.security ? data.operation.security : data.api.security; }}
|
|
{{? data.security && data.security.length }}
|
|
{{#def.authentication}}
|
|
{{??}}
|
|
{{#def.authentication_none}}
|
|
{{?}}
|
|
{{= data.tags.endSection }}
|