|
| 1 | +# {{classname}}{{#description}} |
| 2 | + |
| 3 | +{{description}}{{/description}} |
| 4 | + |
| 5 | +All URIs are relative to *{{basePath}}* |
| 6 | + |
| 7 | +|Method | HTTP request | Description| |
| 8 | +|------------- | ------------- | -------------| |
| 9 | +{{#operations}}{{#operation}}|[**{{operationId}}**](#{{operationIdLowerCase}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{summary}}{{/summary}}| |
| 10 | +{{/operation}} |
| 11 | +{{/operations}} |
| 12 | + |
| 13 | +{{#operations}} |
| 14 | +{{#operation}} |
| 15 | +# **{{{operationId}}}** |
| 16 | +> {{#returnType}}{{{returnType}}} {{/returnType}}{{{operationId}}}({{#requiredParams}}{{^defaultValue}}{{paramName}}{{^-last}}, {{/-last}}{{/defaultValue}}{{/requiredParams}}) |
| 17 | + |
| 18 | +{{#notes}} |
| 19 | +{{{notes}}} |
| 20 | +{{/notes}} |
| 21 | + |
| 22 | +### Example |
| 23 | + |
| 24 | +```typescript |
| 25 | +import { |
| 26 | + {{classname}}, |
| 27 | + Configuration{{#allParams}}{{#isModel}}, |
| 28 | + {{{dataType}}}{{/isModel}}{{/allParams}} |
| 29 | +} from '{{{npmName}}}'; |
| 30 | + |
| 31 | +const configuration = new Configuration(); |
| 32 | +const apiInstance = new {{classname}}(configuration); |
| 33 | +{{#hasParams}}{{#allParams}} |
| 34 | +let {{paramName}}: {{{dataType}}}; //{{{description}}}{{^required}} (optional){{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}{{/allParams}} |
| 35 | + |
| 36 | +const { status, data } = await apiInstance.{{{operationId}}}({{#allParams}} |
| 37 | + {{paramName}}{{^-last}},{{/-last}}{{/allParams}} |
| 38 | +); |
| 39 | +{{/hasParams}}{{^hasParams}} |
| 40 | +const { status, data } = await apiInstance.{{{operationId}}}(); |
| 41 | +{{/hasParams}} |
| 42 | +``` |
| 43 | + |
| 44 | +### Parameters |
| 45 | +{{^hasParams}}This endpoint does not have any parameters.{{/hasParams}}{{#allParams}}{{#-last}} |
| 46 | +|Name | Type | Description | Notes| |
| 47 | +|------------- | ------------- | ------------- | -------------|{{/-last}}{{/allParams}} |
| 48 | +{{#allParams}}{{^defaultValue}}| **{{paramName}}** | {{^isPrimitiveType}}**{{{dataType}}}**{{/isPrimitiveType}}{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}| {{description}} | | |
| 49 | +{{/defaultValue}}{{/allParams}}{{#allParams}}{{#defaultValue}}| **{{paramName}}** | {{^isPrimitiveType}}{{^isEnum}}**{{dataType}}**{{/isEnum}}{{/isPrimitiveType}}{{#isPrimitiveType}}[**{{dataType}}**]{{/isPrimitiveType}}{{#isEnum}}{{#allowableValues}}{{#enumVars}}{{#-first}}**Array<{{/-first}}{{value}}{{^-last}} | {{/-last}}{{#-last}}>**{{/-last}}{{/enumVars}}{{/allowableValues}}{{/isEnum}} | {{description}} |{{^required}} (optional){{/required}} defaults to {{{.}}}| |
| 50 | +{{/defaultValue}}{{/allParams}} |
| 51 | + |
| 52 | +### Return type |
| 53 | + |
| 54 | +{{#returnType}}{{#returnTypeIsPrimitive}}**{{{returnType}}}**{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}**{{{returnType}}}**{{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}void (empty response body){{/returnType}} |
| 55 | + |
| 56 | +### Authorization |
| 57 | + |
| 58 | +{{^authMethods}}No authorization required{{/authMethods}}{{#authMethods}}[{{{name}}}](../README.md#{{{name}}}){{^-last}}, {{/-last}}{{/authMethods}} |
| 59 | + |
| 60 | +### HTTP request headers |
| 61 | + |
| 62 | + - **Content-Type**: {{#consumes}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/consumes}}{{^consumes}}Not defined{{/consumes}} |
| 63 | + - **Accept**: {{#produces}}{{{mediaType}}}{{^-last}}, {{/-last}}{{/produces}}{{^produces}}Not defined{{/produces}} |
| 64 | + |
| 65 | +{{#responses.0}} |
| 66 | + |
| 67 | +### HTTP response details |
| 68 | +| Status code | Description | Response headers | |
| 69 | +|-------------|-------------|------------------| |
| 70 | +{{#responses}} |
| 71 | +|**{{code}}** | {{message}} | {{#headers}} * {{baseName}} - {{description}} <br> {{/headers}}{{^headers.0}} - {{/headers.0}} | |
| 72 | +{{/responses}} |
| 73 | +{{/responses.0}} |
| 74 | + |
| 75 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 76 | + |
| 77 | +{{/operation}} |
| 78 | +{{/operations}} |
0 commit comments