Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,50 +123,50 @@ open class PetAPI: APIBase {
- type: oauth2
- name: petstore_auth
- examples: [{contentType=application/xml, example=<Pet>
<id>123456</id>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
<photoUrls>string</photoUrls>
<photoUrls>aeiou</photoUrls>
</photoUrls>
<tags>
</tags>
<status>string</status>
<status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 123456789,
"id" : 0,
"category" : {
"name" : "aeiou",
"id" : 123456789
"id" : 4
},
"tags" : [ {
"name" : "aeiou",
"id" : 123456789
"id" : 9
} ],
"status" : "aeiou"
"status" : "available"
} ]}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456</id>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
<photoUrls>string</photoUrls>
<photoUrls>aeiou</photoUrls>
</photoUrls>
<tags>
</tags>
<status>string</status>
<status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 123456789,
"id" : 0,
"category" : {
"name" : "aeiou",
"id" : 123456789
"id" : 4
},
"tags" : [ {
"name" : "aeiou",
"id" : 123456789
"id" : 9
} ],
"status" : "aeiou"
"status" : "available"
} ]}]

- parameter status: (query) Status values that need to be considered for filter
Expand Down Expand Up @@ -210,50 +210,50 @@ open class PetAPI: APIBase {
- type: oauth2
- name: petstore_auth
- examples: [{contentType=application/xml, example=<Pet>
<id>123456</id>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
<photoUrls>string</photoUrls>
<photoUrls>aeiou</photoUrls>
</photoUrls>
<tags>
</tags>
<status>string</status>
<status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 123456789,
"id" : 2,
"category" : {
"name" : "aeiou",
"id" : 123456789
"id" : 4
},
"tags" : [ {
"name" : "aeiou",
"id" : 123456789
"id" : 8
} ],
"status" : "aeiou"
"status" : "available"
} ]}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456</id>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
<photoUrls>string</photoUrls>
<photoUrls>aeiou</photoUrls>
</photoUrls>
<tags>
</tags>
<status>string</status>
<status>aeiou</status>
</Pet>}, {contentType=application/json, example=[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 123456789,
"id" : 2,
"category" : {
"name" : "aeiou",
"id" : 123456789
"id" : 4
},
"tags" : [ {
"name" : "aeiou",
"id" : 123456789
"id" : 8
} ],
"status" : "aeiou"
"status" : "available"
} ]}]

- parameter tags: (query) Tags to filter by
Expand Down Expand Up @@ -297,50 +297,50 @@ open class PetAPI: APIBase {
- type: apiKey api_key
- name: api_key
- examples: [{contentType=application/xml, example=<Pet>
<id>123456</id>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
<photoUrls>string</photoUrls>
<photoUrls>aeiou</photoUrls>
</photoUrls>
<tags>
</tags>
<status>string</status>
<status>aeiou</status>
</Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 123456789,
"id" : 6,
"category" : {
"name" : "aeiou",
"id" : 123456789
"id" : 8
},
"tags" : [ {
"name" : "aeiou",
"id" : 123456789
"id" : 8
} ],
"status" : "aeiou"
"status" : "available"
}}]
- examples: [{contentType=application/xml, example=<Pet>
<id>123456</id>
<id>123456789</id>
<name>doggie</name>
<photoUrls>
<photoUrls>string</photoUrls>
<photoUrls>aeiou</photoUrls>
</photoUrls>
<tags>
</tags>
<status>string</status>
<status>aeiou</status>
</Pet>}, {contentType=application/json, example={
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 123456789,
"id" : 6,
"category" : {
"name" : "aeiou",
"id" : 123456789
"id" : 8
},
"tags" : [ {
"name" : "aeiou",
"id" : 123456789
"id" : 8
} ],
"status" : "aeiou"
"status" : "available"
}}]

- parameter petId: (path) ID of pet to return
Expand Down Expand Up @@ -471,7 +471,7 @@ open class PetAPI: APIBase {
- type: oauth2
- name: petstore_auth
- examples: [{contentType=application/json, example={
"code" : 123,
"code" : 0,
"type" : "aeiou",
"message" : "aeiou"
}}]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ open class StoreAPI: APIBase {
- type: apiKey api_key
- name: api_key
- examples: [{contentType=application/json, example={
"key" : 123
"key" : 9
}}]

- returns: RequestBuilder<[String:Int32]>
Expand Down Expand Up @@ -102,34 +102,34 @@ open class StoreAPI: APIBase {
- GET /store/order/{orderId}
- For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- examples: [{contentType=application/xml, example=<Order>
<id>123456</id>
<petId>123456</petId>
<quantity>0</quantity>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>string</status>
<status>aeiou</status>
<complete>true</complete>
</Order>}, {contentType=application/json, example={
"petId" : 123456789,
"quantity" : 123,
"id" : 123456789,
"petId" : 2,
"quantity" : 4,
"id" : 4,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : true,
"status" : "aeiou"
"complete" : false,
"status" : "placed"
}}]
- examples: [{contentType=application/xml, example=<Order>
<id>123456</id>
<petId>123456</petId>
<quantity>0</quantity>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>string</status>
<status>aeiou</status>
<complete>true</complete>
</Order>}, {contentType=application/json, example={
"petId" : 123456789,
"quantity" : 123,
"id" : 123456789,
"petId" : 2,
"quantity" : 4,
"id" : 4,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : true,
"status" : "aeiou"
"complete" : false,
"status" : "placed"
}}]

- parameter orderId: (path) ID of pet that needs to be fetched
Expand Down Expand Up @@ -168,34 +168,34 @@ open class StoreAPI: APIBase {
- POST /store/order
-
- examples: [{contentType=application/xml, example=<Order>
<id>123456</id>
<petId>123456</petId>
<quantity>0</quantity>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>string</status>
<status>aeiou</status>
<complete>true</complete>
</Order>}, {contentType=application/json, example={
"petId" : 123456789,
"quantity" : 123,
"id" : 123456789,
"petId" : 3,
"quantity" : 3,
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : true,
"status" : "aeiou"
"complete" : false,
"status" : "placed"
}}]
- examples: [{contentType=application/xml, example=<Order>
<id>123456</id>
<petId>123456</petId>
<quantity>0</quantity>
<id>123456789</id>
<petId>123456789</petId>
<quantity>123</quantity>
<shipDate>2000-01-23T04:56:07.000Z</shipDate>
<status>string</status>
<status>aeiou</status>
<complete>true</complete>
</Order>}, {contentType=application/json, example={
"petId" : 123456789,
"quantity" : 123,
"id" : 123456789,
"petId" : 3,
"quantity" : 3,
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : true,
"status" : "aeiou"
"complete" : false,
"status" : "placed"
}}]

- parameter body: (body) order placed for purchasing the pet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,40 +169,40 @@ open class UserAPI: APIBase {
- GET /user/{username}
-
- examples: [{contentType=application/xml, example=<User>
<id>123456</id>
<username>string</username>
<firstName>string</firstName>
<lastName>string</lastName>
<email>string</email>
<password>string</password>
<phone>string</phone>
<userStatus>0</userStatus>
<id>123456789</id>
<username>aeiou</username>
<firstName>aeiou</firstName>
<lastName>aeiou</lastName>
<email>aeiou</email>
<password>aeiou</password>
<phone>aeiou</phone>
<userStatus>123</userStatus>
</User>}, {contentType=application/json, example={
"firstName" : "aeiou",
"lastName" : "aeiou",
"password" : "aeiou",
"userStatus" : 123,
"userStatus" : 1,
"phone" : "aeiou",
"id" : 123456789,
"id" : 4,
"email" : "aeiou",
"username" : "aeiou"
}}]
- examples: [{contentType=application/xml, example=<User>
<id>123456</id>
<username>string</username>
<firstName>string</firstName>
<lastName>string</lastName>
<email>string</email>
<password>string</password>
<phone>string</phone>
<userStatus>0</userStatus>
<id>123456789</id>
<username>aeiou</username>
<firstName>aeiou</firstName>
<lastName>aeiou</lastName>
<email>aeiou</email>
<password>aeiou</password>
<phone>aeiou</phone>
<userStatus>123</userStatus>
</User>}, {contentType=application/json, example={
"firstName" : "aeiou",
"lastName" : "aeiou",
"password" : "aeiou",
"userStatus" : 123,
"userStatus" : 1,
"phone" : "aeiou",
"id" : 123456789,
"id" : 4,
"email" : "aeiou",
"username" : "aeiou"
}}]
Expand Down Expand Up @@ -245,8 +245,8 @@ open class UserAPI: APIBase {
-
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
- responseHeaders: [X-Rate-Limit(Int32), X-Expires-After(Date)]
- examples: [{contentType=application/xml, example=string}, {contentType=application/json, example="aeiou"}]
- examples: [{contentType=application/xml, example=string}, {contentType=application/json, example="aeiou"}]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}]
- examples: [{contentType=application/xml, example=aeiou}, {contentType=application/json, example="aeiou"}]

- parameter username: (query) The user name for login
- parameter password: (query) The password for login in clear text
Expand Down
Loading