update swift petstore samples

This commit is contained in:
wing328 2017-08-04 01:01:19 +08:00
parent 3cb36738b1
commit e60034ec7d
18 changed files with 564 additions and 186 deletions

View File

@ -164,15 +164,34 @@ public class PetAPI: APIBase {
- type: oauth2 - type: oauth2
- name: petstore_auth - name: petstore_auth
- examples: [{contentType=application/json, example=[ { - examples: [{contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -187,15 +206,34 @@ public class PetAPI: APIBase {
<status>aeiou</status> <status>aeiou</status>
</Pet>}] </Pet>}]
- examples: [{contentType=application/json, example=[ { - examples: [{contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -255,15 +293,18 @@ public class PetAPI: APIBase {
- type: oauth2 - type: oauth2
- name: petstore_auth - name: petstore_auth
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -278,15 +319,18 @@ public class PetAPI: APIBase {
<status>aeiou</status> <status>aeiou</status>
</Pet>}] </Pet>}]
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"

View File

@ -168,14 +168,14 @@ public class UserAPI: APIBase {
- GET /user/{username} - GET /user/{username}
- -
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}, {contentType=application/xml, example=<User> }}, {contentType=application/xml, example=<User>
<id>123456789</id> <id>123456789</id>
<username>aeiou</username> <username>aeiou</username>
@ -187,14 +187,14 @@ public class UserAPI: APIBase {
<userStatus>123</userStatus> <userStatus>123</userStatus>
</User>}] </User>}]
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}, {contentType=application/xml, example=<User> }}, {contentType=application/xml, example=<User>
<id>123456789</id> <id>123456789</id>
<username>aeiou</username> <username>aeiou</username>
@ -244,8 +244,8 @@ public class UserAPI: APIBase {
Logs user into the system Logs user into the system
- GET /user/login - GET /user/login
- -
- examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=aeiou}] - examples: [{contentType=application/json, example=""}, {contentType=application/xml, example=aeiou}]
- examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=aeiou}] - examples: [{contentType=application/json, example=""}, {contentType=application/xml, example=aeiou}]
- parameter username: (query) The user name for login (optional) - parameter username: (query) The user name for login (optional)
- parameter password: (query) The password for login in clear text (optional) - parameter password: (query) The password for login in clear text (optional)

View File

@ -234,15 +234,34 @@ public class PetAPI: APIBase {
- type: oauth2 - type: oauth2
- name: petstore_auth - name: petstore_auth
- examples: [{contentType=application/json, example=[ { - examples: [{contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -257,15 +276,34 @@ public class PetAPI: APIBase {
<status>aeiou</status> <status>aeiou</status>
</Pet>}] </Pet>}]
- examples: [{contentType=application/json, example=[ { - examples: [{contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -342,15 +380,18 @@ public class PetAPI: APIBase {
- type: oauth2 - type: oauth2
- name: petstore_auth - name: petstore_auth
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -365,15 +406,18 @@ public class PetAPI: APIBase {
<status>aeiou</status> <status>aeiou</status>
</Pet>}] </Pet>}]
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"

View File

@ -254,14 +254,14 @@ public class UserAPI: APIBase {
- GET /user/{username} - GET /user/{username}
- -
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}, {contentType=application/xml, example=<User> }}, {contentType=application/xml, example=<User>
<id>123456789</id> <id>123456789</id>
<username>aeiou</username> <username>aeiou</username>
@ -273,14 +273,14 @@ public class UserAPI: APIBase {
<userStatus>123</userStatus> <userStatus>123</userStatus>
</User>}] </User>}]
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}, {contentType=application/xml, example=<User> }}, {contentType=application/xml, example=<User>
<id>123456789</id> <id>123456789</id>
<username>aeiou</username> <username>aeiou</username>
@ -348,8 +348,8 @@ public class UserAPI: APIBase {
Logs user into the system Logs user into the system
- GET /user/login - GET /user/login
- -
- examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=aeiou}] - examples: [{contentType=application/json, example=""}, {contentType=application/xml, example=aeiou}]
- examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=aeiou}] - examples: [{contentType=application/json, example=""}, {contentType=application/xml, example=aeiou}]
- parameter username: (query) The user name for login (optional) - parameter username: (query) The user name for login (optional)
- parameter password: (query) The password for login in clear text (optional) - parameter password: (query) The password for login in clear text (optional)

View File

@ -242,15 +242,34 @@ public class PetAPI: APIBase {
- type: oauth2 - type: oauth2
- name: petstore_auth - name: petstore_auth
- examples: [{contentType=application/json, example=[ { - examples: [{contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -265,15 +284,34 @@ public class PetAPI: APIBase {
<status>aeiou</status> <status>aeiou</status>
</Pet>}] </Pet>}]
- examples: [{contentType=application/json, example=[ { - examples: [{contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -352,15 +390,18 @@ public class PetAPI: APIBase {
- type: oauth2 - type: oauth2
- name: petstore_auth - name: petstore_auth
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -375,15 +416,18 @@ public class PetAPI: APIBase {
<status>aeiou</status> <status>aeiou</status>
</Pet>}] </Pet>}]
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"

View File

@ -264,14 +264,14 @@ public class UserAPI: APIBase {
- GET /user/{username} - GET /user/{username}
- -
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}, {contentType=application/xml, example=<User> }}, {contentType=application/xml, example=<User>
<id>123456789</id> <id>123456789</id>
<username>aeiou</username> <username>aeiou</username>
@ -283,14 +283,14 @@ public class UserAPI: APIBase {
<userStatus>123</userStatus> <userStatus>123</userStatus>
</User>}] </User>}]
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}, {contentType=application/xml, example=<User> }}, {contentType=application/xml, example=<User>
<id>123456789</id> <id>123456789</id>
<username>aeiou</username> <username>aeiou</username>
@ -360,8 +360,8 @@ public class UserAPI: APIBase {
Logs user into the system Logs user into the system
- GET /user/login - GET /user/login
- -
- examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=aeiou}] - examples: [{contentType=application/json, example=""}, {contentType=application/xml, example=aeiou}]
- examples: [{contentType=application/json, example="aeiou"}, {contentType=application/xml, example=aeiou}] - examples: [{contentType=application/json, example=""}, {contentType=application/xml, example=aeiou}]
- parameter username: (query) The user name for login (optional) - parameter username: (query) The user name for login (optional)
- parameter password: (query) The password for login in clear text (optional) - parameter password: (query) The password for login in clear text (optional)

View File

@ -169,7 +169,7 @@ open class FakeAPI {
- PATCH /fake - PATCH /fake
- To test \"client\" model - To test \"client\" model
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"client" : "aeiou" "client" : "client"
}}] }}]
- parameter body: (body) client model - parameter body: (body) client model

View File

@ -31,7 +31,7 @@ open class Fake_classname_tags123API {
- type: apiKey api_key_query (QUERY) - type: apiKey api_key_query (QUERY)
- name: api_key_query - name: api_key_query
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"client" : "aeiou" "client" : "client"
}}] }}]
- parameter body: (body) client model - parameter body: (body) client model

View File

@ -133,15 +133,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -156,15 +175,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -220,15 +258,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -243,15 +300,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -307,15 +383,18 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example={ </Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -330,15 +409,18 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example={ </Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -473,8 +555,8 @@ open class PetAPI {
- name: petstore_auth - name: petstore_auth
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"code" : 0, "code" : 0,
"type" : "aeiou", "type" : "type",
"message" : "aeiou" "message" : "message"
}}] }}]
- parameter petId: (path) ID of pet to update - parameter petId: (path) ID of pet to update

View File

@ -179,14 +179,14 @@ open class UserAPI {
<phone>aeiou</phone> <phone>aeiou</phone>
<userStatus>123</userStatus> <userStatus>123</userStatus>
</User>}, {contentType=application/json, example={ </User>}, {contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}] }}]
- examples: [{contentType=application/xml, example=<User> - examples: [{contentType=application/xml, example=<User>
<id>123456789</id> <id>123456789</id>
@ -198,14 +198,14 @@ open class UserAPI {
<phone>aeiou</phone> <phone>aeiou</phone>
<userStatus>123</userStatus> <userStatus>123</userStatus>
</User>}, {contentType=application/json, example={ </User>}, {contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}] }}]
- parameter username: (path) The name that needs to be fetched. Use user1 for testing. - parameter username: (path) The name that needs to be fetched. Use user1 for testing.
@ -246,8 +246,8 @@ open class UserAPI {
- -
- responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)] - responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)]
- responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)] - responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}] - examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example=""}]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}] - examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example=""}]
- parameter username: (query) The user name for login - parameter username: (query) The user name for login
- parameter password: (query) The password for login in clear text - parameter password: (query) The password for login in clear text

View File

@ -251,7 +251,7 @@ open class FakeAPI {
- PATCH /fake - PATCH /fake
- To test \"client\" model - To test \"client\" model
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"client" : "aeiou" "client" : "client"
}}] }}]
- parameter body: (body) client model - parameter body: (body) client model

View File

@ -49,7 +49,7 @@ open class Fake_classname_tags123API {
- type: apiKey api_key_query (QUERY) - type: apiKey api_key_query (QUERY)
- name: api_key_query - name: api_key_query
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"client" : "aeiou" "client" : "client"
}}] }}]
- parameter body: (body) client model - parameter body: (body) client model

View File

@ -186,15 +186,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -209,15 +228,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -290,15 +328,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -313,15 +370,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -394,15 +470,18 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example={ </Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -417,15 +496,18 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example={ </Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -615,8 +697,8 @@ open class PetAPI {
- name: petstore_auth - name: petstore_auth
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"code" : 0, "code" : 0,
"type" : "aeiou", "type" : "type",
"message" : "aeiou" "message" : "message"
}}] }}]
- parameter petId: (path) ID of pet to update - parameter petId: (path) ID of pet to update

View File

@ -265,14 +265,14 @@ open class UserAPI {
<phone>aeiou</phone> <phone>aeiou</phone>
<userStatus>123</userStatus> <userStatus>123</userStatus>
</User>}, {contentType=application/json, example={ </User>}, {contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}] }}]
- examples: [{contentType=application/xml, example=<User> - examples: [{contentType=application/xml, example=<User>
<id>123456789</id> <id>123456789</id>
@ -284,14 +284,14 @@ open class UserAPI {
<phone>aeiou</phone> <phone>aeiou</phone>
<userStatus>123</userStatus> <userStatus>123</userStatus>
</User>}, {contentType=application/json, example={ </User>}, {contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}] }}]
- parameter username: (path) The name that needs to be fetched. Use user1 for testing. - parameter username: (path) The name that needs to be fetched. Use user1 for testing.
@ -350,8 +350,8 @@ open class UserAPI {
- -
- responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)] - responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)]
- responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)] - responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}] - examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example=""}]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}] - examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example=""}]
- parameter username: (query) The user name for login - parameter username: (query) The user name for login
- parameter password: (query) The password for login in clear text - parameter password: (query) The password for login in clear text

View File

@ -261,7 +261,7 @@ open class FakeAPI {
- PATCH /fake - PATCH /fake
- To test \"client\" model - To test \"client\" model
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"client" : "aeiou" "client" : "client"
}}] }}]
- parameter body: (body) client model - parameter body: (body) client model

View File

@ -51,7 +51,7 @@ open class Fake_classname_tags123API {
- type: apiKey api_key_query (QUERY) - type: apiKey api_key_query (QUERY)
- name: api_key_query - name: api_key_query
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"client" : "aeiou" "client" : "client"
}}] }}]
- parameter body: (body) client model - parameter body: (body) client model

View File

@ -192,15 +192,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -215,15 +234,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -298,15 +336,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -321,15 +378,34 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ { </Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1
} ],
"status" : "available"
}, {
"photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "name",
"id" : 6
},
"tags" : [ {
"name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -404,15 +480,18 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example={ </Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -427,15 +506,18 @@ open class PetAPI {
</tags> </tags>
<status>aeiou</status> <status>aeiou</status>
</Pet>}, {contentType=application/json, example={ </Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ], "photoUrls" : [ "photoUrls", "photoUrls" ],
"name" : "doggie", "name" : "doggie",
"id" : 0, "id" : 0,
"category" : { "category" : {
"name" : "aeiou", "name" : "name",
"id" : 6 "id" : 6
}, },
"tags" : [ { "tags" : [ {
"name" : "aeiou", "name" : "name",
"id" : 1
}, {
"name" : "name",
"id" : 1 "id" : 1
} ], } ],
"status" : "available" "status" : "available"
@ -631,8 +713,8 @@ open class PetAPI {
- name: petstore_auth - name: petstore_auth
- examples: [{contentType=application/json, example={ - examples: [{contentType=application/json, example={
"code" : 0, "code" : 0,
"type" : "aeiou", "type" : "type",
"message" : "aeiou" "message" : "message"
}}] }}]
- parameter petId: (path) ID of pet to update - parameter petId: (path) ID of pet to update

View File

@ -275,14 +275,14 @@ open class UserAPI {
<phone>aeiou</phone> <phone>aeiou</phone>
<userStatus>123</userStatus> <userStatus>123</userStatus>
</User>}, {contentType=application/json, example={ </User>}, {contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}] }}]
- examples: [{contentType=application/xml, example=<User> - examples: [{contentType=application/xml, example=<User>
<id>123456789</id> <id>123456789</id>
@ -294,14 +294,14 @@ open class UserAPI {
<phone>aeiou</phone> <phone>aeiou</phone>
<userStatus>123</userStatus> <userStatus>123</userStatus>
</User>}, {contentType=application/json, example={ </User>}, {contentType=application/json, example={
"firstName" : "aeiou", "firstName" : "firstName",
"lastName" : "aeiou", "lastName" : "lastName",
"password" : "aeiou", "password" : "password",
"userStatus" : 6, "userStatus" : 6,
"phone" : "aeiou", "phone" : "phone",
"id" : 0, "id" : 0,
"email" : "aeiou", "email" : "email",
"username" : "aeiou" "username" : "username"
}}] }}]
- parameter username: (path) The name that needs to be fetched. Use user1 for testing. - parameter username: (path) The name that needs to be fetched. Use user1 for testing.
@ -362,8 +362,8 @@ open class UserAPI {
- -
- responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)] - responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)]
- responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)] - responseHeaders: [X-Rate-Limit(Int), X-Expires-After(Date)]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}] - examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example=""}]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}] - examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example=""}]
- parameter username: (query) The user name for login - parameter username: (query) The user name for login
- parameter password: (query) The password for login in clear text - parameter password: (query) The password for login in clear text