@@ -94,108 +94,11 @@ export class {{{name}}}{{{@root.postfix}}} {
94
94
{{ #each parametersPath }}
95
95
'{{{ prop }}} ': '{{{ name }}} ',
96
96
{{ /each }}
97
- }
97
+ },
98
+ {{ /if }}
99
+ {{ #if parametersBody }}
100
+ bodyJsonModel: '${{> type parametersBody }} ',
98
101
{{ /if }}
99
- }
100
-
101
- /**
102
- {{ #if deprecated }}
103
- * @deprecated
104
- {{ /if }}
105
- {{ #if summary }}
106
- * {{{ escapeComment summary }}}
107
- {{ /if }}
108
- {{ #if description }}
109
- * {{{ escapeComment description }}}
110
- {{ /if }}
111
- {{ #unless @root.useOptions }}
112
- {{ #if parameters }}
113
- {{ #each parameters }}
114
- * @param {{{ name }}} {{ #if description }} {{{ escapeComment description }}} {{ /if }}
115
- {{ /each }}
116
- {{ /if }}
117
- {{ /unless }}
118
- {{ #each results }}
119
- * @returns {{{ type }}} {{ #if description }} {{{ escapeComment description }}} {{ /if }}
120
- {{ /each }}
121
- * @throws ApiError
122
- */
123
- {{ #if @root.exportClient }}
124
- {{ #equals @root.httpClient ' angular' }}
125
- public {{{ name }}} ({{> parameters }} ): Observable<{{ >result}}> {
126
- return this.httpRequest.request({
127
- {{ else }}
128
- public {{{ name }}} ({{> parameters }} ): CancelablePromise<{{ >result}}> {
129
- return this.httpRequest.request({
130
- {{ /equals }}
131
- {{ else }}
132
- {{ #equals @root.httpClient ' angular' }}
133
- public {{{ name }}} ({{> parameters }} ): Observable<{{ >result}}> {
134
- return __request(OpenAPI, this.http, {
135
- {{ else }}
136
- public static {{{ name }}} ({{> parameters }} ): CancelablePromise<{{ >result}}> {
137
- return __request(OpenAPI, {
138
- {{ /equals }}
139
- {{ /if }}
140
- method: '{{{ method }}} ',
141
- url: '{{{ path }}} ',
142
- {{ #if parametersPath }}
143
- path: {
144
- {{ #each parametersPath }}
145
- '{{{ prop }}} ': {{{ name }}} ,
146
- {{ /each }}
147
- },
148
- {{ /if }}
149
- {{ #if parametersCookie }}
150
- cookies: {
151
- {{ #each parametersCookie }}
152
- '{{{ prop }}} ': {{{ name }}} ,
153
- {{ /each }}
154
- },
155
- {{ /if }}
156
- {{ #if parametersHeader }}
157
- headers: {
158
- {{ #each parametersHeader }}
159
- '{{{ prop }}} ': {{{ name }}} ,
160
- {{ /each }}
161
- },
162
- {{ /if }}
163
- {{ #if parametersQuery }}
164
- query: {
165
- {{ #each parametersQuery }}
166
- '{{{ prop }}} ': {{{ name }}} ,
167
- {{ /each }}
168
- },
169
- {{ /if }}
170
- {{ #if parametersForm }}
171
- formData: {
172
- {{ #each parametersForm }}
173
- '{{{ prop }}} ': {{{ name }}} ,
174
- {{ /each }}
175
- },
176
- {{ /if }}
177
- {{ #if parametersBody }}
178
- {{ #equals parametersBody.in ' formData' }}
179
- formData: {{{ parametersBody.name }}} ,
180
- {{ /equals }}
181
- {{ #equals parametersBody.in ' body' }}
182
- body: {{{ parametersBody.name }}} ,
183
- {{ /equals }}
184
- {{ #if parametersBody.mediaType }}
185
- mediaType: '{{{ parametersBody.mediaType }}} ',
186
- {{ /if }}
187
- {{ /if }}
188
- {{ #if responseHeader }}
189
- responseHeader: '{{{ responseHeader }}} ',
190
- {{ /if }}
191
- {{ #if errors }}
192
- errors: {
193
- {{ #each errors }}
194
- {{{ code }}} : `{{{ escapeDescription description }}} `,
195
- {{ /each }}
196
- },
197
- {{ /if }}
198
- });
199
102
}
200
103
201
104
{{ /each }}
0 commit comments