5
5
import type { {{{ this }}} } from '../models/{{{ this }}} ';
6
6
{{ /each }}
7
7
{{ /if }}
8
- import type { CancelablePromise } from '../core/CancelablePromise';
9
- import { request as __request } from '../core/request';
10
- {{ #if @root.useVersion }}
11
- import { OpenAPI } from '../core/OpenAPI';
12
- {{ /if }}
13
8
14
9
{{ #each operations }}
15
10
{{ #hasLength parameters }}
@@ -19,86 +14,3 @@ export type {{capitalizeFirstLetter name}}Request = {
19
14
20
15
{{ /hasLength }}
21
16
{{ /each }}
22
- export class {{{ name }}}{{{ @root.postfix }}} {
23
-
24
- {{ #each operations }}
25
- /**
26
- {{ #if deprecated }}
27
- * @deprecated
28
- {{ /if }}
29
- {{ #if summary }}
30
- * {{{ summary }}}
31
- {{ /if }}
32
- {{ #if description }}
33
- * {{{ description }}}
34
- {{ /if }}
35
- {{ #unless @root.useOptions }}
36
- {{ #if parameters }}
37
- {{ #each parameters }}
38
- * @param {{{ name }}} {{{ description }}}
39
- {{ /each }}
40
- {{ /if }}
41
- {{ /unless }}
42
- {{ #each results }}
43
- * @returns {{{ type }}} {{{ description }}}
44
- {{ /each }}
45
- * @throws ApiError
46
- */
47
- public static {{{ name }}} ({{> parameters }} ): CancelablePromise<{{ >result}}> {
48
- return __request({
49
- method: '{{{ method }}} ',
50
- path: `{{{ path }}} `,
51
- {{ #if parametersCookie }}
52
- cookies: {
53
- {{ #each parametersCookie }}
54
- '{{{ prop }}} ': {{{ name }}} ,
55
- {{ /each }}
56
- },
57
- {{ /if }}
58
- {{ #if parametersHeader }}
59
- headers: {
60
- {{ #each parametersHeader }}
61
- '{{{ prop }}} ': {{{ name }}} ,
62
- {{ /each }}
63
- },
64
- {{ /if }}
65
- {{ #if parametersQuery }}
66
- query: {
67
- {{ #each parametersQuery }}
68
- '{{{ prop }}} ': {{{ name }}} ,
69
- {{ /each }}
70
- },
71
- {{ /if }}
72
- {{ #if parametersForm }}
73
- formData: {
74
- {{ #each parametersForm }}
75
- '{{{ prop }}} ': {{{ name }}} ,
76
- {{ /each }}
77
- },
78
- {{ /if }}
79
- {{ #if parametersBody }}
80
- {{ #equals parametersBody.in ' formData' }}
81
- formData: {{{ parametersBody.name }}} ,
82
- {{ /equals }}
83
- {{ #equals parametersBody.in ' body' }}
84
- body: {{{ parametersBody.name }}} ,
85
- {{ /equals }}
86
- {{ #if parametersBody.mediaType }}
87
- mediaType: '{{{ parametersBody.mediaType }}} ',
88
- {{ /if }}
89
- {{ /if }}
90
- {{ #if responseHeader }}
91
- responseHeader: '{{{ responseHeader }}} ',
92
- {{ /if }}
93
- {{ #if errors }}
94
- errors: {
95
- {{ #each errors }}
96
- {{{ code }}} : `{{{ description }}} `,
97
- {{ /each }}
98
- },
99
- {{ /if }}
100
- });
101
- }
102
-
103
- {{ /each }}
104
- }
0 commit comments