forked from loafle/openapi-generator-original
update python ,swift petstore sample
This commit is contained in:
@@ -602,10 +602,12 @@ class ApiClient(object):
|
|||||||
:param klass: class literal.
|
:param klass: class literal.
|
||||||
:return: model object.
|
:return: model object.
|
||||||
"""
|
"""
|
||||||
if not klass.swagger_types:
|
|
||||||
|
if not klass.swagger_types and not hasattr(klass, 'get_real_child_model'):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
|
if klass.swagger_types is not None:
|
||||||
for attr, attr_type in iteritems(klass.swagger_types):
|
for attr, attr_type in iteritems(klass.swagger_types):
|
||||||
if data is not None \
|
if data is not None \
|
||||||
and klass.attribute_map[attr] in data \
|
and klass.attribute_map[attr] in data \
|
||||||
@@ -615,4 +617,8 @@ class ApiClient(object):
|
|||||||
|
|
||||||
instance = klass(**kwargs)
|
instance = klass(**kwargs)
|
||||||
|
|
||||||
|
if hasattr(instance, 'get_real_child_model'):
|
||||||
|
klass_name = instance.get_real_child_model(data)
|
||||||
|
if klass_name:
|
||||||
|
instance = self.__deserialize(data, klass_name)
|
||||||
return instance
|
return instance
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ open class FakeAPI: APIBase {
|
|||||||
- 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
|
||||||
- returns: RequestBuilder<Client>
|
- returns: RequestBuilder<Client>
|
||||||
|
|||||||
@@ -25,9 +25,11 @@ open class Fake_classname_tags123API: APIBase {
|
|||||||
/**
|
/**
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
- PATCH /fake_classname_test
|
- PATCH /fake_classname_test
|
||||||
|
- API Key:
|
||||||
|
- type: apiKey api_key_query (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
|
||||||
- returns: RequestBuilder<Client>
|
- returns: RequestBuilder<Client>
|
||||||
|
|||||||
@@ -123,15 +123,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -146,15 +165,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -206,15 +244,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -229,15 +286,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -289,15 +365,18 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -312,15 +391,18 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -443,8 +525,8 @@ open class PetAPI: APIBase {
|
|||||||
- 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
|
||||||
- parameter additionalMetadata: (form) Additional data to pass to server (optional)
|
- parameter additionalMetadata: (form) Additional data to pass to server (optional)
|
||||||
|
|||||||
@@ -166,14 +166,14 @@ open class UserAPI: APIBase {
|
|||||||
<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>
|
||||||
@@ -185,14 +185,14 @@ open class UserAPI: APIBase {
|
|||||||
<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.
|
||||||
- returns: RequestBuilder<User>
|
- returns: RequestBuilder<User>
|
||||||
@@ -230,8 +230,8 @@ open class UserAPI: APIBase {
|
|||||||
|
|
||||||
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
||||||
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
- responseHeaders: [X-Rate-Limit(Int32), 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
|
||||||
- returns: RequestBuilder<String>
|
- returns: RequestBuilder<String>
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ open class FakeAPI: APIBase {
|
|||||||
- 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
|
||||||
- returns: RequestBuilder<Client>
|
- returns: RequestBuilder<Client>
|
||||||
|
|||||||
@@ -42,9 +42,11 @@ open class Fake_classname_tags123API: APIBase {
|
|||||||
/**
|
/**
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
- PATCH /fake_classname_test
|
- PATCH /fake_classname_test
|
||||||
|
- API Key:
|
||||||
|
- type: apiKey api_key_query (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
|
||||||
- returns: RequestBuilder<Client>
|
- returns: RequestBuilder<Client>
|
||||||
|
|||||||
@@ -173,15 +173,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -196,15 +215,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -272,15 +310,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -295,15 +352,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -371,15 +447,18 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -394,15 +473,18 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -577,8 +659,8 @@ open class PetAPI: APIBase {
|
|||||||
- 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
|
||||||
- parameter additionalMetadata: (form) Additional data to pass to server (optional)
|
- parameter additionalMetadata: (form) Additional data to pass to server (optional)
|
||||||
|
|||||||
@@ -247,14 +247,14 @@ open class UserAPI: APIBase {
|
|||||||
<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>
|
||||||
@@ -266,14 +266,14 @@ open class UserAPI: APIBase {
|
|||||||
<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.
|
||||||
- returns: RequestBuilder<User>
|
- returns: RequestBuilder<User>
|
||||||
@@ -328,8 +328,8 @@ open class UserAPI: APIBase {
|
|||||||
|
|
||||||
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
||||||
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
- responseHeaders: [X-Rate-Limit(Int32), 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
|
||||||
- returns: RequestBuilder<String>
|
- returns: RequestBuilder<String>
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ open class FakeAPI: APIBase {
|
|||||||
- 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
|
||||||
- returns: RequestBuilder<Client>
|
- returns: RequestBuilder<Client>
|
||||||
|
|||||||
@@ -44,9 +44,11 @@ open class Fake_classname_tags123API: APIBase {
|
|||||||
/**
|
/**
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
- PATCH /fake_classname_test
|
- PATCH /fake_classname_test
|
||||||
|
- API Key:
|
||||||
|
- type: apiKey api_key_query (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
|
||||||
- returns: RequestBuilder<Client>
|
- returns: RequestBuilder<Client>
|
||||||
|
|||||||
@@ -179,15 +179,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -202,15 +221,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -280,15 +318,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -303,15 +360,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -381,15 +457,18 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -404,15 +483,18 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -593,8 +675,8 @@ open class PetAPI: APIBase {
|
|||||||
- 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
|
||||||
- parameter additionalMetadata: (form) Additional data to pass to server (optional)
|
- parameter additionalMetadata: (form) Additional data to pass to server (optional)
|
||||||
|
|||||||
@@ -257,14 +257,14 @@ open class UserAPI: APIBase {
|
|||||||
<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>
|
||||||
@@ -276,14 +276,14 @@ open class UserAPI: APIBase {
|
|||||||
<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.
|
||||||
- returns: RequestBuilder<User>
|
- returns: RequestBuilder<User>
|
||||||
@@ -340,8 +340,8 @@ open class UserAPI: APIBase {
|
|||||||
|
|
||||||
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
||||||
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
- responseHeaders: [X-Rate-Limit(Int32), 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
|
||||||
- returns: RequestBuilder<String>
|
- returns: RequestBuilder<String>
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ open class FakeAPI: APIBase {
|
|||||||
- 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
|
||||||
- returns: RequestBuilder<Client>
|
- returns: RequestBuilder<Client>
|
||||||
|
|||||||
@@ -25,9 +25,11 @@ open class Fake_classname_tags123API: APIBase {
|
|||||||
/**
|
/**
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
- PATCH /fake_classname_test
|
- PATCH /fake_classname_test
|
||||||
|
- API Key:
|
||||||
|
- type: apiKey api_key_query (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
|
||||||
- returns: RequestBuilder<Client>
|
- returns: RequestBuilder<Client>
|
||||||
|
|||||||
@@ -123,15 +123,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -146,15 +165,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -206,15 +244,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -229,15 +286,34 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -289,15 +365,18 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -312,15 +391,18 @@ open class PetAPI: APIBase {
|
|||||||
</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"
|
||||||
@@ -443,8 +525,8 @@ open class PetAPI: APIBase {
|
|||||||
- 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
|
||||||
- parameter additionalMetadata: (form) Additional data to pass to server (optional)
|
- parameter additionalMetadata: (form) Additional data to pass to server (optional)
|
||||||
|
|||||||
@@ -166,14 +166,14 @@ open class UserAPI: APIBase {
|
|||||||
<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>
|
||||||
@@ -185,14 +185,14 @@ open class UserAPI: APIBase {
|
|||||||
<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.
|
||||||
- returns: RequestBuilder<User>
|
- returns: RequestBuilder<User>
|
||||||
@@ -230,8 +230,8 @@ open class UserAPI: APIBase {
|
|||||||
|
|
||||||
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
||||||
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
|
- responseHeaders: [X-Rate-Limit(Int32), 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
|
||||||
- returns: RequestBuilder<String>
|
- returns: RequestBuilder<String>
|
||||||
|
|||||||
Reference in New Issue
Block a user