Skip to content

Commit 4a951fa

Browse files
author
Paŭlo Ebermann
committed
Update swift3 samples after 2.2.2.
1 parent 66a510c commit 4a951fa

File tree

9 files changed

+306
-306
lines changed

9 files changed

+306
-306
lines changed

samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/PetAPI.swift

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -123,50 +123,50 @@ open class PetAPI: APIBase {
123123
- type: oauth2
124124
- name: petstore_auth
125125
- examples: [{contentType=application/xml, example=<Pet>
126-
<id>123456</id>
126+
<id>123456789</id>
127127
<name>doggie</name>
128128
<photoUrls>
129-
<photoUrls>string</photoUrls>
129+
<photoUrls>aeiou</photoUrls>
130130
</photoUrls>
131131
<tags>
132132
</tags>
133-
<status>string</status>
133+
<status>aeiou</status>
134134
</Pet>}, {contentType=application/json, example=[ {
135135
"photoUrls" : [ "aeiou" ],
136136
"name" : "doggie",
137-
"id" : 123456789,
137+
"id" : 5,
138138
"category" : {
139139
"name" : "aeiou",
140-
"id" : 123456789
140+
"id" : 3
141141
},
142142
"tags" : [ {
143143
"name" : "aeiou",
144-
"id" : 123456789
144+
"id" : 9
145145
} ],
146-
"status" : "aeiou"
146+
"status" : "available"
147147
} ]}]
148148
- examples: [{contentType=application/xml, example=<Pet>
149-
<id>123456</id>
149+
<id>123456789</id>
150150
<name>doggie</name>
151151
<photoUrls>
152-
<photoUrls>string</photoUrls>
152+
<photoUrls>aeiou</photoUrls>
153153
</photoUrls>
154154
<tags>
155155
</tags>
156-
<status>string</status>
156+
<status>aeiou</status>
157157
</Pet>}, {contentType=application/json, example=[ {
158158
"photoUrls" : [ "aeiou" ],
159159
"name" : "doggie",
160-
"id" : 123456789,
160+
"id" : 5,
161161
"category" : {
162162
"name" : "aeiou",
163-
"id" : 123456789
163+
"id" : 3
164164
},
165165
"tags" : [ {
166166
"name" : "aeiou",
167-
"id" : 123456789
167+
"id" : 9
168168
} ],
169-
"status" : "aeiou"
169+
"status" : "available"
170170
} ]}]
171171

172172
- parameter status: (query) Status values that need to be considered for filter
@@ -210,50 +210,50 @@ open class PetAPI: APIBase {
210210
- type: oauth2
211211
- name: petstore_auth
212212
- examples: [{contentType=application/xml, example=<Pet>
213-
<id>123456</id>
213+
<id>123456789</id>
214214
<name>doggie</name>
215215
<photoUrls>
216-
<photoUrls>string</photoUrls>
216+
<photoUrls>aeiou</photoUrls>
217217
</photoUrls>
218218
<tags>
219219
</tags>
220-
<status>string</status>
220+
<status>aeiou</status>
221221
</Pet>}, {contentType=application/json, example=[ {
222222
"photoUrls" : [ "aeiou" ],
223223
"name" : "doggie",
224-
"id" : 123456789,
224+
"id" : 3,
225225
"category" : {
226226
"name" : "aeiou",
227-
"id" : 123456789
227+
"id" : 4
228228
},
229229
"tags" : [ {
230230
"name" : "aeiou",
231-
"id" : 123456789
231+
"id" : 5
232232
} ],
233-
"status" : "aeiou"
233+
"status" : "available"
234234
} ]}]
235235
- examples: [{contentType=application/xml, example=<Pet>
236-
<id>123456</id>
236+
<id>123456789</id>
237237
<name>doggie</name>
238238
<photoUrls>
239-
<photoUrls>string</photoUrls>
239+
<photoUrls>aeiou</photoUrls>
240240
</photoUrls>
241241
<tags>
242242
</tags>
243-
<status>string</status>
243+
<status>aeiou</status>
244244
</Pet>}, {contentType=application/json, example=[ {
245245
"photoUrls" : [ "aeiou" ],
246246
"name" : "doggie",
247-
"id" : 123456789,
247+
"id" : 3,
248248
"category" : {
249249
"name" : "aeiou",
250-
"id" : 123456789
250+
"id" : 4
251251
},
252252
"tags" : [ {
253253
"name" : "aeiou",
254-
"id" : 123456789
254+
"id" : 5
255255
} ],
256-
"status" : "aeiou"
256+
"status" : "available"
257257
} ]}]
258258

259259
- parameter tags: (query) Tags to filter by
@@ -297,50 +297,50 @@ open class PetAPI: APIBase {
297297
- type: apiKey api_key
298298
- name: api_key
299299
- examples: [{contentType=application/xml, example=<Pet>
300-
<id>123456</id>
300+
<id>123456789</id>
301301
<name>doggie</name>
302302
<photoUrls>
303-
<photoUrls>string</photoUrls>
303+
<photoUrls>aeiou</photoUrls>
304304
</photoUrls>
305305
<tags>
306306
</tags>
307-
<status>string</status>
307+
<status>aeiou</status>
308308
</Pet>}, {contentType=application/json, example={
309309
"photoUrls" : [ "aeiou" ],
310310
"name" : "doggie",
311-
"id" : 123456789,
311+
"id" : 2,
312312
"category" : {
313313
"name" : "aeiou",
314-
"id" : 123456789
314+
"id" : 2
315315
},
316316
"tags" : [ {
317317
"name" : "aeiou",
318-
"id" : 123456789
318+
"id" : 2
319319
} ],
320-
"status" : "aeiou"
320+
"status" : "available"
321321
}}]
322322
- examples: [{contentType=application/xml, example=<Pet>
323-
<id>123456</id>
323+
<id>123456789</id>
324324
<name>doggie</name>
325325
<photoUrls>
326-
<photoUrls>string</photoUrls>
326+
<photoUrls>aeiou</photoUrls>
327327
</photoUrls>
328328
<tags>
329329
</tags>
330-
<status>string</status>
330+
<status>aeiou</status>
331331
</Pet>}, {contentType=application/json, example={
332332
"photoUrls" : [ "aeiou" ],
333333
"name" : "doggie",
334-
"id" : 123456789,
334+
"id" : 2,
335335
"category" : {
336336
"name" : "aeiou",
337-
"id" : 123456789
337+
"id" : 2
338338
},
339339
"tags" : [ {
340340
"name" : "aeiou",
341-
"id" : 123456789
341+
"id" : 2
342342
} ],
343-
"status" : "aeiou"
343+
"status" : "available"
344344
}}]
345345

346346
- parameter petId: (path) ID of pet to return
@@ -471,7 +471,7 @@ open class PetAPI: APIBase {
471471
- type: oauth2
472472
- name: petstore_auth
473473
- examples: [{contentType=application/json, example={
474-
"code" : 123,
474+
"code" : 1,
475475
"type" : "aeiou",
476476
"message" : "aeiou"
477477
}}]

samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/StoreAPI.swift

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ open class StoreAPI: APIBase {
6666
- type: apiKey api_key
6767
- name: api_key
6868
- examples: [{contentType=application/json, example={
69-
"key" : 123
69+
"key" : 3
7070
}}]
7171

7272
- returns: RequestBuilder<[String:Int32]>
@@ -102,34 +102,34 @@ open class StoreAPI: APIBase {
102102
- GET /store/order/{orderId}
103103
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
104104
- examples: [{contentType=application/xml, example=<Order>
105-
<id>123456</id>
106-
<petId>123456</petId>
107-
<quantity>0</quantity>
105+
<id>123456789</id>
106+
<petId>123456789</petId>
107+
<quantity>123</quantity>
108108
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
109-
<status>string</status>
109+
<status>aeiou</status>
110110
<complete>true</complete>
111111
</Order>}, {contentType=application/json, example={
112-
"petId" : 123456789,
113-
"quantity" : 123,
114-
"id" : 123456789,
112+
"petId" : 0,
113+
"quantity" : 9,
114+
"id" : 8,
115115
"shipDate" : "2000-01-23T04:56:07.000+00:00",
116-
"complete" : true,
117-
"status" : "aeiou"
116+
"complete" : false,
117+
"status" : "placed"
118118
}}]
119119
- examples: [{contentType=application/xml, example=<Order>
120-
<id>123456</id>
121-
<petId>123456</petId>
122-
<quantity>0</quantity>
120+
<id>123456789</id>
121+
<petId>123456789</petId>
122+
<quantity>123</quantity>
123123
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
124-
<status>string</status>
124+
<status>aeiou</status>
125125
<complete>true</complete>
126126
</Order>}, {contentType=application/json, example={
127-
"petId" : 123456789,
128-
"quantity" : 123,
129-
"id" : 123456789,
127+
"petId" : 0,
128+
"quantity" : 9,
129+
"id" : 8,
130130
"shipDate" : "2000-01-23T04:56:07.000+00:00",
131-
"complete" : true,
132-
"status" : "aeiou"
131+
"complete" : false,
132+
"status" : "placed"
133133
}}]
134134

135135
- parameter orderId: (path) ID of pet that needs to be fetched
@@ -168,34 +168,34 @@ open class StoreAPI: APIBase {
168168
- POST /store/order
169169
-
170170
- examples: [{contentType=application/xml, example=<Order>
171-
<id>123456</id>
172-
<petId>123456</petId>
173-
<quantity>0</quantity>
171+
<id>123456789</id>
172+
<petId>123456789</petId>
173+
<quantity>123</quantity>
174174
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
175-
<status>string</status>
175+
<status>aeiou</status>
176176
<complete>true</complete>
177177
</Order>}, {contentType=application/json, example={
178-
"petId" : 123456789,
179-
"quantity" : 123,
180-
"id" : 123456789,
178+
"petId" : 4,
179+
"quantity" : 3,
180+
"id" : 3,
181181
"shipDate" : "2000-01-23T04:56:07.000+00:00",
182-
"complete" : true,
183-
"status" : "aeiou"
182+
"complete" : false,
183+
"status" : "placed"
184184
}}]
185185
- examples: [{contentType=application/xml, example=<Order>
186-
<id>123456</id>
187-
<petId>123456</petId>
188-
<quantity>0</quantity>
186+
<id>123456789</id>
187+
<petId>123456789</petId>
188+
<quantity>123</quantity>
189189
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
190-
<status>string</status>
190+
<status>aeiou</status>
191191
<complete>true</complete>
192192
</Order>}, {contentType=application/json, example={
193-
"petId" : 123456789,
194-
"quantity" : 123,
195-
"id" : 123456789,
193+
"petId" : 4,
194+
"quantity" : 3,
195+
"id" : 3,
196196
"shipDate" : "2000-01-23T04:56:07.000+00:00",
197-
"complete" : true,
198-
"status" : "aeiou"
197+
"complete" : false,
198+
"status" : "placed"
199199
}}]
200200

201201
- parameter body: (body) order placed for purchasing the pet

samples/client/petstore/swift3/default/PetstoreClient/Classes/Swaggers/APIs/UserAPI.swift

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -169,40 +169,40 @@ open class UserAPI: APIBase {
169169
- GET /user/{username}
170170
-
171171
- examples: [{contentType=application/xml, example=<User>
172-
<id>123456</id>
173-
<username>string</username>
174-
<firstName>string</firstName>
175-
<lastName>string</lastName>
176-
<email>string</email>
177-
<password>string</password>
178-
<phone>string</phone>
179-
<userStatus>0</userStatus>
172+
<id>123456789</id>
173+
<username>aeiou</username>
174+
<firstName>aeiou</firstName>
175+
<lastName>aeiou</lastName>
176+
<email>aeiou</email>
177+
<password>aeiou</password>
178+
<phone>aeiou</phone>
179+
<userStatus>123</userStatus>
180180
</User>}, {contentType=application/json, example={
181181
"firstName" : "aeiou",
182182
"lastName" : "aeiou",
183183
"password" : "aeiou",
184-
"userStatus" : 123,
184+
"userStatus" : 7,
185185
"phone" : "aeiou",
186-
"id" : 123456789,
186+
"id" : 6,
187187
"email" : "aeiou",
188188
"username" : "aeiou"
189189
}}]
190190
- examples: [{contentType=application/xml, example=<User>
191-
<id>123456</id>
192-
<username>string</username>
193-
<firstName>string</firstName>
194-
<lastName>string</lastName>
195-
<email>string</email>
196-
<password>string</password>
197-
<phone>string</phone>
198-
<userStatus>0</userStatus>
191+
<id>123456789</id>
192+
<username>aeiou</username>
193+
<firstName>aeiou</firstName>
194+
<lastName>aeiou</lastName>
195+
<email>aeiou</email>
196+
<password>aeiou</password>
197+
<phone>aeiou</phone>
198+
<userStatus>123</userStatus>
199199
</User>}, {contentType=application/json, example={
200200
"firstName" : "aeiou",
201201
"lastName" : "aeiou",
202202
"password" : "aeiou",
203-
"userStatus" : 123,
203+
"userStatus" : 7,
204204
"phone" : "aeiou",
205-
"id" : 123456789,
205+
"id" : 6,
206206
"email" : "aeiou",
207207
"username" : "aeiou"
208208
}}]
@@ -245,8 +245,8 @@ open class UserAPI: APIBase {
245245
-
246246
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
247247
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
248-
- examples: [{contentType=application/xml, example=string}, {contentType=application/json, example="aeiou"}]
249-
- examples: [{contentType=application/xml, example=string}, {contentType=application/json, example="aeiou"}]
248+
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}]
249+
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}]
250250

251251
- parameter username: (query) The user name for login
252252
- parameter password: (query) The password for login in clear text

0 commit comments

Comments
 (0)