remove downloadImage from petstore.json

This commit is contained in:
wing328
2015-12-26 16:15:58 +08:00
parent 6124062a70
commit 5638027179
3 changed files with 8 additions and 106 deletions

View File

@@ -402,23 +402,6 @@
]
}
},
"/pet/{petId}/downloadImage" : {
"get" : {
"tags" : [ "pet" ],
"summary" : "downloads an image",
"description" : "",
"operationId" : "downloadFile",
"produces" : [ "application/octet-stream" ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/File"
}
}
}
}
},
"/store/inventory": {
"get": {
"tags": [
@@ -989,65 +972,6 @@
"xml": {
"name": "Order"
}
},
"definitions" : {
"File": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"name": {
"type": "string"
},
"canonicalPath": {
"type": "string"
},
"parent": {
"type": "string"
},
"absolute": {
"type": "boolean",
"default": false
},
"absoluteFile": {
"$ref": "#/definitions/File"
},
"absolutePath": {
"type": "string"
},
"canonicalFile": {
"$ref": "#/definitions/File"
},
"freeSpace": {
"type": "integer",
"format": "int64"
},
"parentFile": {
"$ref": "#/definitions/File"
},
"totalSpace": {
"type": "integer",
"format": "int64"
},
"usableSpace": {
"type": "integer",
"format": "int64"
},
"directory": {
"type": "boolean",
"default": false
},
"file": {
"type": "boolean",
"default": false
},
"hidden": {
"type": "boolean",
"default": false
}
}
}
}
}
}

View File

@@ -342,28 +342,6 @@ extension PetstoreClientAPI {
return requestBuilder.init(method: "DELETE", URLString: URLString, parameters: parameters, isBody: true)
}
/**
downloads an image
- GET /pet/{petId}/downloadImage
-
- examples: [{output=none}]
- returns: RequestBuilder<File>
*/
public class func downloadFile() -> RequestBuilder<File> {
let path = "/pet/{petId}/downloadImage"
let URLString = PetstoreClientAPI.basePath + path
let nillableParameters: [String:AnyObject?] = [:]
let parameters = APIHelper.rejectNil(nillableParameters)
let requestBuilder: RequestBuilder<File>.Type = PetstoreClientAPI.requestBuilderFactory.getBuilder()
return requestBuilder.init(method: "GET", URLString: URLString, parameters: parameters, isBody: true)
}
/**
uploads an image

View File

@@ -54,12 +54,12 @@ extension PetstoreClientAPI {
"complete" : true,
"status" : "aeiou",
"quantity" : 123,
"shipDate" : "2015-12-26T03:35:39.893+0000"
"shipDate" : "2015-12-26T08:15:52.206+0000"
}, contentType=application/json}, {example=<Order>
<id>123456</id>
<petId>123456</petId>
<quantity>0</quantity>
<shipDate>2015-12-26T11:35:39.898Z</shipDate>
<shipDate>2015-12-26T16:15:52.210Z</shipDate>
<status>string</status>
<complete>true</complete>
</Order>, contentType=application/xml}]
@@ -69,12 +69,12 @@ extension PetstoreClientAPI {
"complete" : true,
"status" : "aeiou",
"quantity" : 123,
"shipDate" : "2015-12-26T03:35:39.893+0000"
"shipDate" : "2015-12-26T08:15:52.206+0000"
}, contentType=application/json}, {example=<Order>
<id>123456</id>
<petId>123456</petId>
<quantity>0</quantity>
<shipDate>2015-12-26T11:35:39.898Z</shipDate>
<shipDate>2015-12-26T16:15:52.210Z</shipDate>
<status>string</status>
<complete>true</complete>
</Order>, contentType=application/xml}]
@@ -106,12 +106,12 @@ extension PetstoreClientAPI {
"complete" : true,
"status" : "aeiou",
"quantity" : 123,
"shipDate" : "2015-12-26T03:35:39.900+0000"
"shipDate" : "2015-12-26T08:15:52.211+0000"
}, contentType=application/json}, {example=<Order>
<id>123456</id>
<petId>123456</petId>
<quantity>0</quantity>
<shipDate>2015-12-26T11:35:39.900Z</shipDate>
<shipDate>2015-12-26T16:15:52.212Z</shipDate>
<status>string</status>
<complete>true</complete>
</Order>, contentType=application/xml}]
@@ -121,12 +121,12 @@ extension PetstoreClientAPI {
"complete" : true,
"status" : "aeiou",
"quantity" : 123,
"shipDate" : "2015-12-26T03:35:39.900+0000"
"shipDate" : "2015-12-26T08:15:52.211+0000"
}, contentType=application/json}, {example=<Order>
<id>123456</id>
<petId>123456</petId>
<quantity>0</quantity>
<shipDate>2015-12-26T11:35:39.900Z</shipDate>
<shipDate>2015-12-26T16:15:52.212Z</shipDate>
<status>string</status>
<complete>true</complete>
</Order>, contentType=application/xml}]