@@ -16,6 +16,7 @@ class PetApi {
1616 def queryParams = [:]
1717 def headerParams = [:]
1818 def bodyParams
19+ def accept
1920 def contentType
2021
2122 // verify required params are set
@@ -29,7 +30,9 @@ class PetApi {
2930 bodyParams = pet
3031
3132
32- apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
33+ accept = apiUtils. selectHeaderAccept([" application/xml" , " application/json" ])
34+
35+ apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, accept, contentType,
3336 " POST" , " " ,
3437 Pet . class )
3538
@@ -42,6 +45,7 @@ class PetApi {
4245 def queryParams = [:]
4346 def headerParams = [:]
4447 def bodyParams
48+ def accept
4549 def contentType
4650
4751 // verify required params are set
@@ -56,7 +60,9 @@ class PetApi {
5660
5761
5862
59- apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
63+ accept = apiUtils. selectHeaderAccept([])
64+
65+ apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, accept, contentType,
6066 " DELETE" , " " ,
6167 null )
6268
@@ -69,6 +75,7 @@ class PetApi {
6975 def queryParams = [:]
7076 def headerParams = [:]
7177 def bodyParams
78+ def accept
7279 def contentType
7380
7481 // verify required params are set
@@ -83,7 +90,9 @@ class PetApi {
8390
8491
8592
86- apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
93+ accept = apiUtils. selectHeaderAccept([" application/xml" , " application/json" ])
94+
95+ apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, accept, contentType,
8796 " GET" , " array" ,
8897 Pet . class )
8998
@@ -96,6 +105,7 @@ class PetApi {
96105 def queryParams = [:]
97106 def headerParams = [:]
98107 def bodyParams
108+ def accept
99109 def contentType
100110
101111 // verify required params are set
@@ -110,7 +120,9 @@ class PetApi {
110120
111121
112122
113- apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
123+ accept = apiUtils. selectHeaderAccept([" application/xml" , " application/json" ])
124+
125+ apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, accept, contentType,
114126 " GET" , " array" ,
115127 Pet . class )
116128
@@ -123,6 +135,7 @@ class PetApi {
123135 def queryParams = [:]
124136 def headerParams = [:]
125137 def bodyParams
138+ def accept
126139 def contentType
127140
128141 // verify required params are set
@@ -134,7 +147,9 @@ class PetApi {
134147
135148
136149
137- apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
150+ accept = apiUtils. selectHeaderAccept([" application/xml" , " application/json" ])
151+
152+ apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, accept, contentType,
138153 " GET" , " " ,
139154 Pet . class )
140155
@@ -147,6 +162,7 @@ class PetApi {
147162 def queryParams = [:]
148163 def headerParams = [:]
149164 def bodyParams
165+ def accept
150166 def contentType
151167
152168 // verify required params are set
@@ -160,7 +176,9 @@ class PetApi {
160176 bodyParams = pet
161177
162178
163- apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
179+ accept = apiUtils. selectHeaderAccept([" application/xml" , " application/json" ])
180+
181+ apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, accept, contentType,
164182 " PUT" , " " ,
165183 Pet . class )
166184
@@ -173,6 +191,7 @@ class PetApi {
173191 def queryParams = [:]
174192 def headerParams = [:]
175193 def bodyParams
194+ def accept
176195 def contentType
177196
178197 // verify required params are set
@@ -188,7 +207,9 @@ class PetApi {
188207 bodyParams. put(" name" , name)
189208 bodyParams. put(" status" , status)
190209
191- apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
210+ accept = apiUtils. selectHeaderAccept([])
211+
212+ apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, accept, contentType,
192213 " POST" , " " ,
193214 null )
194215
@@ -201,6 +222,7 @@ class PetApi {
201222 def queryParams = [:]
202223 def headerParams = [:]
203224 def bodyParams
225+ def accept
204226 def contentType
205227
206228 // verify required params are set
@@ -216,7 +238,9 @@ class PetApi {
216238 bodyParams. put(" additionalMetadata" , additionalMetadata)
217239 bodyParams. put(" file" , _file)
218240
219- apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
241+ accept = apiUtils. selectHeaderAccept([" application/json" ])
242+
243+ apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, accept, contentType,
220244 " POST" , " " ,
221245 ModelApiResponse . class )
222246
0 commit comments