forked from loafle/openapi-generator-original
Updates http-client dependency to correctly handles certificates (#5707)
* Updates http-client dependency to one that correctly handles certificates This is important as amazon AWS gateway and several other types of certificates will not work correctly due to the old java library used by the 2.0.0 version of http-client. * Runs the petstore updates switch for clojure * Runs the petstore updates switch for clojure
This commit is contained in:
parent
d315ba2984
commit
b1ccaf69ac
@ -4,5 +4,5 @@
|
|||||||
:license {:name "<&projectLicenseName>"<#projectLicenseUrl>
|
:license {:name "<&projectLicenseName>"<#projectLicenseUrl>
|
||||||
:url "<&projectLicenseUrl>"</projectLicenseUrl>}</projectLicenseName>
|
:url "<&projectLicenseUrl>"</projectLicenseUrl>}</projectLicenseName>
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]
|
:dependencies [[org.clojure/clojure "1.7.0"]
|
||||||
[clj-http "2.0.0"]
|
[clj-http "3.6.0"]
|
||||||
[cheshire "5.5.0"]])
|
[cheshire "5.5.0"]])
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(defproject swagger-petstore "1.0.0"
|
(defproject swagger-petstore "1.0.0"
|
||||||
:description "This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters"
|
:description "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters."
|
||||||
:license {:name "Apache 2.0"
|
:license {:name "Apache 2.0"
|
||||||
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
|
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.7.0"]
|
:dependencies [[org.clojure/clojure "1.7.0"]
|
||||||
[clj-http "2.0.0"]
|
[clj-http "3.6.0"]
|
||||||
[cheshire "5.5.0"]])
|
[cheshire "5.5.0"]])
|
||||||
|
@ -5,24 +5,22 @@
|
|||||||
(defn add-pet-with-http-info
|
(defn add-pet-with-http-info
|
||||||
"Add a new pet to the store
|
"Add a new pet to the store
|
||||||
"
|
"
|
||||||
([] (add-pet-with-http-info nil))
|
[body ]
|
||||||
([{:keys [body ]}]
|
(call-api "/pet" :post
|
||||||
(call-api "/pet" :post
|
{:path-params {}
|
||||||
{:path-params {}
|
:header-params {}
|
||||||
:header-params {}
|
:query-params {}
|
||||||
:query-params {}
|
:form-params {}
|
||||||
:form-params {}
|
:body-param body
|
||||||
:body-param body
|
:content-types ["application/json" "application/xml"]
|
||||||
:content-types ["application/json" "application/xml"]
|
:accepts ["application/xml" "application/json"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:auth-names ["petstore_auth"]}))
|
||||||
:auth-names ["petstore_auth"]})))
|
|
||||||
|
|
||||||
(defn add-pet
|
(defn add-pet
|
||||||
"Add a new pet to the store
|
"Add a new pet to the store
|
||||||
"
|
"
|
||||||
([] (add-pet nil))
|
[body ]
|
||||||
([optional-params]
|
(:data (add-pet-with-http-info body)))
|
||||||
(:data (add-pet-with-http-info optional-params))))
|
|
||||||
|
|
||||||
(defn delete-pet-with-http-info
|
(defn delete-pet-with-http-info
|
||||||
"Deletes a pet
|
"Deletes a pet
|
||||||
@ -35,7 +33,7 @@
|
|||||||
:query-params {}
|
:query-params {}
|
||||||
:form-params {}
|
:form-params {}
|
||||||
:content-types []
|
:content-types []
|
||||||
:accepts ["application/json" "application/xml"]
|
:accepts ["application/xml" "application/json"]
|
||||||
:auth-names ["petstore_auth"]})))
|
:auth-names ["petstore_auth"]})))
|
||||||
|
|
||||||
(defn delete-pet
|
(defn delete-pet
|
||||||
@ -48,48 +46,44 @@
|
|||||||
(defn find-pets-by-status-with-http-info
|
(defn find-pets-by-status-with-http-info
|
||||||
"Finds Pets by status
|
"Finds Pets by status
|
||||||
Multiple status values can be provided with comma separated strings"
|
Multiple status values can be provided with comma separated strings"
|
||||||
([] (find-pets-by-status-with-http-info nil))
|
[status ]
|
||||||
([{:keys [status ]}]
|
(call-api "/pet/findByStatus" :get
|
||||||
(call-api "/pet/findByStatus" :get
|
{:path-params {}
|
||||||
{:path-params {}
|
:header-params {}
|
||||||
:header-params {}
|
:query-params {"status" (with-collection-format status :csv) }
|
||||||
:query-params {"status" (with-collection-format status :multi) }
|
:form-params {}
|
||||||
:form-params {}
|
:content-types []
|
||||||
:content-types []
|
:accepts ["application/xml" "application/json"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:auth-names ["petstore_auth"]}))
|
||||||
:auth-names ["petstore_auth"]})))
|
|
||||||
|
|
||||||
(defn find-pets-by-status
|
(defn find-pets-by-status
|
||||||
"Finds Pets by status
|
"Finds Pets by status
|
||||||
Multiple status values can be provided with comma separated strings"
|
Multiple status values can be provided with comma separated strings"
|
||||||
([] (find-pets-by-status nil))
|
[status ]
|
||||||
([optional-params]
|
(:data (find-pets-by-status-with-http-info status)))
|
||||||
(:data (find-pets-by-status-with-http-info optional-params))))
|
|
||||||
|
|
||||||
(defn find-pets-by-tags-with-http-info
|
(defn find-pets-by-tags-with-http-info
|
||||||
"Finds Pets by tags
|
"Finds Pets by tags
|
||||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing."
|
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing."
|
||||||
([] (find-pets-by-tags-with-http-info nil))
|
[tags ]
|
||||||
([{:keys [tags ]}]
|
(call-api "/pet/findByTags" :get
|
||||||
(call-api "/pet/findByTags" :get
|
{:path-params {}
|
||||||
{:path-params {}
|
:header-params {}
|
||||||
:header-params {}
|
:query-params {"tags" (with-collection-format tags :csv) }
|
||||||
:query-params {"tags" (with-collection-format tags :multi) }
|
:form-params {}
|
||||||
:form-params {}
|
:content-types []
|
||||||
:content-types []
|
:accepts ["application/xml" "application/json"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:auth-names ["petstore_auth"]}))
|
||||||
:auth-names ["petstore_auth"]})))
|
|
||||||
|
|
||||||
(defn find-pets-by-tags
|
(defn find-pets-by-tags
|
||||||
"Finds Pets by tags
|
"Finds Pets by tags
|
||||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing."
|
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing."
|
||||||
([] (find-pets-by-tags nil))
|
[tags ]
|
||||||
([optional-params]
|
(:data (find-pets-by-tags-with-http-info tags)))
|
||||||
(:data (find-pets-by-tags-with-http-info optional-params))))
|
|
||||||
|
|
||||||
(defn get-pet-by-id-with-http-info
|
(defn get-pet-by-id-with-http-info
|
||||||
"Find pet by ID
|
"Find pet by ID
|
||||||
Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions"
|
Returns a single pet"
|
||||||
[pet-id ]
|
[pet-id ]
|
||||||
(call-api "/pet/{petId}" :get
|
(call-api "/pet/{petId}" :get
|
||||||
{:path-params {"petId" pet-id }
|
{:path-params {"petId" pet-id }
|
||||||
@ -97,36 +91,35 @@
|
|||||||
:query-params {}
|
:query-params {}
|
||||||
:form-params {}
|
:form-params {}
|
||||||
:content-types []
|
:content-types []
|
||||||
|
|
||||||
:accepts ["application/json" "application/xml"]
|
:accepts ["application/json" "application/xml"]
|
||||||
:auth-names ["api_key" "petstore_auth"]}))
|
:auth-names ["api_key" "petstore_auth"]}))
|
||||||
|
|
||||||
(defn get-pet-by-id
|
(defn get-pet-by-id
|
||||||
"Find pet by ID
|
"Find pet by ID
|
||||||
Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions"
|
Returns a single pet"
|
||||||
[pet-id ]
|
[pet-id ]
|
||||||
(:data (get-pet-by-id-with-http-info pet-id)))
|
(:data (get-pet-by-id-with-http-info pet-id)))
|
||||||
|
|
||||||
(defn update-pet-with-http-info
|
(defn update-pet-with-http-info
|
||||||
"Update an existing pet
|
"Update an existing pet
|
||||||
"
|
"
|
||||||
([] (update-pet-with-http-info nil))
|
[body ]
|
||||||
([{:keys [body ]}]
|
(call-api "/pet" :put
|
||||||
(call-api "/pet" :put
|
{:path-params {}
|
||||||
{:path-params {}
|
:header-params {}
|
||||||
:header-params {}
|
:query-params {}
|
||||||
:query-params {}
|
:form-params {}
|
||||||
:form-params {}
|
:body-param body
|
||||||
:body-param body
|
:content-types ["application/json" "application/xml"]
|
||||||
:content-types ["application/json" "application/xml"]
|
:accepts ["application/xml" "application/json"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:auth-names ["petstore_auth"]}))
|
||||||
:auth-names ["petstore_auth"]})))
|
|
||||||
|
|
||||||
(defn update-pet
|
(defn update-pet
|
||||||
"Update an existing pet
|
"Update an existing pet
|
||||||
"
|
"
|
||||||
([] (update-pet nil))
|
[body ]
|
||||||
([optional-params]
|
(:data (update-pet-with-http-info body)))
|
||||||
(:data (update-pet-with-http-info optional-params))))
|
|
||||||
|
|
||||||
(defn update-pet-with-form-with-http-info
|
(defn update-pet-with-form-with-http-info
|
||||||
"Updates a pet in the store with form data
|
"Updates a pet in the store with form data
|
||||||
@ -139,7 +132,7 @@
|
|||||||
:query-params {}
|
:query-params {}
|
||||||
:form-params {"name" name "status" status }
|
:form-params {"name" name "status" status }
|
||||||
:content-types ["application/x-www-form-urlencoded"]
|
:content-types ["application/x-www-form-urlencoded"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:accepts ["application/xml" "application/json"]
|
||||||
:auth-names ["petstore_auth"]})))
|
:auth-names ["petstore_auth"]})))
|
||||||
|
|
||||||
(defn update-pet-with-form
|
(defn update-pet-with-form
|
||||||
@ -160,7 +153,7 @@
|
|||||||
:query-params {}
|
:query-params {}
|
||||||
:form-params {"additionalMetadata" additional-metadata "file" file }
|
:form-params {"additionalMetadata" additional-metadata "file" file }
|
||||||
:content-types ["multipart/form-data"]
|
:content-types ["multipart/form-data"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:accepts ["application/json"]
|
||||||
:auth-names ["petstore_auth"]})))
|
:auth-names ["petstore_auth"]})))
|
||||||
|
|
||||||
(defn upload-file
|
(defn upload-file
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
:query-params {}
|
:query-params {}
|
||||||
:form-params {}
|
:form-params {}
|
||||||
:content-types []
|
:content-types []
|
||||||
:accepts ["application/json" "application/xml"]
|
:accepts ["application/xml" "application/json"]
|
||||||
:auth-names []}))
|
:auth-names []}))
|
||||||
|
|
||||||
(defn delete-order
|
(defn delete-order
|
||||||
@ -31,7 +31,7 @@
|
|||||||
:query-params {}
|
:query-params {}
|
||||||
:form-params {}
|
:form-params {}
|
||||||
:content-types []
|
:content-types []
|
||||||
:accepts ["application/json" "application/xml"]
|
:accepts ["application/json"]
|
||||||
:auth-names ["api_key"]}))
|
:auth-names ["api_key"]}))
|
||||||
|
|
||||||
(defn get-inventory
|
(defn get-inventory
|
||||||
@ -50,7 +50,7 @@
|
|||||||
:query-params {}
|
:query-params {}
|
||||||
:form-params {}
|
:form-params {}
|
||||||
:content-types []
|
:content-types []
|
||||||
:accepts ["application/json" "application/xml"]
|
:accepts ["application/xml" "application/json"]
|
||||||
:auth-names []}))
|
:auth-names []}))
|
||||||
|
|
||||||
(defn get-order-by-id
|
(defn get-order-by-id
|
||||||
@ -62,22 +62,20 @@
|
|||||||
(defn place-order-with-http-info
|
(defn place-order-with-http-info
|
||||||
"Place an order for a pet
|
"Place an order for a pet
|
||||||
"
|
"
|
||||||
([] (place-order-with-http-info nil))
|
[body ]
|
||||||
([{:keys [body ]}]
|
(call-api "/store/order" :post
|
||||||
(call-api "/store/order" :post
|
{:path-params {}
|
||||||
{:path-params {}
|
:header-params {}
|
||||||
:header-params {}
|
:query-params {}
|
||||||
:query-params {}
|
:form-params {}
|
||||||
:form-params {}
|
:body-param body
|
||||||
:body-param body
|
:content-types []
|
||||||
:content-types []
|
:accepts ["application/xml" "application/json"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:auth-names []}))
|
||||||
:auth-names []})))
|
|
||||||
|
|
||||||
(defn place-order
|
(defn place-order
|
||||||
"Place an order for a pet
|
"Place an order for a pet
|
||||||
"
|
"
|
||||||
([] (place-order nil))
|
[body ]
|
||||||
([optional-params]
|
(:data (place-order-with-http-info body)))
|
||||||
(:data (place-order-with-http-info optional-params))))
|
|
||||||
|
|
||||||
|
@ -5,68 +5,62 @@
|
|||||||
(defn create-user-with-http-info
|
(defn create-user-with-http-info
|
||||||
"Create user
|
"Create user
|
||||||
This can only be done by the logged in user."
|
This can only be done by the logged in user."
|
||||||
([] (create-user-with-http-info nil))
|
[body ]
|
||||||
([{:keys [body ]}]
|
(call-api "/user" :post
|
||||||
(call-api "/user" :post
|
{:path-params {}
|
||||||
{:path-params {}
|
:header-params {}
|
||||||
:header-params {}
|
:query-params {}
|
||||||
:query-params {}
|
:form-params {}
|
||||||
:form-params {}
|
:body-param body
|
||||||
:body-param body
|
:content-types []
|
||||||
:content-types []
|
:accepts ["application/xml" "application/json"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:auth-names []}))
|
||||||
:auth-names []})))
|
|
||||||
|
|
||||||
(defn create-user
|
(defn create-user
|
||||||
"Create user
|
"Create user
|
||||||
This can only be done by the logged in user."
|
This can only be done by the logged in user."
|
||||||
([] (create-user nil))
|
[body ]
|
||||||
([optional-params]
|
(:data (create-user-with-http-info body)))
|
||||||
(:data (create-user-with-http-info optional-params))))
|
|
||||||
|
|
||||||
(defn create-users-with-array-input-with-http-info
|
(defn create-users-with-array-input-with-http-info
|
||||||
"Creates list of users with given input array
|
"Creates list of users with given input array
|
||||||
"
|
"
|
||||||
([] (create-users-with-array-input-with-http-info nil))
|
[body ]
|
||||||
([{:keys [body ]}]
|
(call-api "/user/createWithArray" :post
|
||||||
(call-api "/user/createWithArray" :post
|
{:path-params {}
|
||||||
{:path-params {}
|
:header-params {}
|
||||||
:header-params {}
|
:query-params {}
|
||||||
:query-params {}
|
:form-params {}
|
||||||
:form-params {}
|
:body-param body
|
||||||
:body-param body
|
:content-types []
|
||||||
:content-types []
|
:accepts ["application/xml" "application/json"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:auth-names []}))
|
||||||
:auth-names []})))
|
|
||||||
|
|
||||||
(defn create-users-with-array-input
|
(defn create-users-with-array-input
|
||||||
"Creates list of users with given input array
|
"Creates list of users with given input array
|
||||||
"
|
"
|
||||||
([] (create-users-with-array-input nil))
|
[body ]
|
||||||
([optional-params]
|
(:data (create-users-with-array-input-with-http-info body)))
|
||||||
(:data (create-users-with-array-input-with-http-info optional-params))))
|
|
||||||
|
|
||||||
(defn create-users-with-list-input-with-http-info
|
(defn create-users-with-list-input-with-http-info
|
||||||
"Creates list of users with given input array
|
"Creates list of users with given input array
|
||||||
"
|
"
|
||||||
([] (create-users-with-list-input-with-http-info nil))
|
[body ]
|
||||||
([{:keys [body ]}]
|
(call-api "/user/createWithList" :post
|
||||||
(call-api "/user/createWithList" :post
|
{:path-params {}
|
||||||
{:path-params {}
|
:header-params {}
|
||||||
:header-params {}
|
:query-params {}
|
||||||
:query-params {}
|
:form-params {}
|
||||||
:form-params {}
|
:body-param body
|
||||||
:body-param body
|
:content-types []
|
||||||
:content-types []
|
:accepts ["application/xml" "application/json"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:auth-names []}))
|
||||||
:auth-names []})))
|
|
||||||
|
|
||||||
(defn create-users-with-list-input
|
(defn create-users-with-list-input
|
||||||
"Creates list of users with given input array
|
"Creates list of users with given input array
|
||||||
"
|
"
|
||||||
([] (create-users-with-list-input nil))
|
[body ]
|
||||||
([optional-params]
|
(:data (create-users-with-list-input-with-http-info body)))
|
||||||
(:data (create-users-with-list-input-with-http-info optional-params))))
|
|
||||||
|
|
||||||
(defn delete-user-with-http-info
|
(defn delete-user-with-http-info
|
||||||
"Delete user
|
"Delete user
|
||||||
@ -78,7 +72,7 @@
|
|||||||
:query-params {}
|
:query-params {}
|
||||||
:form-params {}
|
:form-params {}
|
||||||
:content-types []
|
:content-types []
|
||||||
:accepts ["application/json" "application/xml"]
|
:accepts ["application/xml" "application/json"]
|
||||||
:auth-names []}))
|
:auth-names []}))
|
||||||
|
|
||||||
(defn delete-user
|
(defn delete-user
|
||||||
@ -97,7 +91,7 @@
|
|||||||
:query-params {}
|
:query-params {}
|
||||||
:form-params {}
|
:form-params {}
|
||||||
:content-types []
|
:content-types []
|
||||||
:accepts ["application/json" "application/xml"]
|
:accepts ["application/xml" "application/json"]
|
||||||
:auth-names []}))
|
:auth-names []}))
|
||||||
|
|
||||||
(defn get-user-by-name
|
(defn get-user-by-name
|
||||||
@ -109,23 +103,21 @@
|
|||||||
(defn login-user-with-http-info
|
(defn login-user-with-http-info
|
||||||
"Logs user into the system
|
"Logs user into the system
|
||||||
"
|
"
|
||||||
([] (login-user-with-http-info nil))
|
[username password ]
|
||||||
([{:keys [username password ]}]
|
(call-api "/user/login" :get
|
||||||
(call-api "/user/login" :get
|
{:path-params {}
|
||||||
{:path-params {}
|
:header-params {}
|
||||||
:header-params {}
|
:query-params {"username" username "password" password }
|
||||||
:query-params {"username" username "password" password }
|
:form-params {}
|
||||||
:form-params {}
|
:content-types []
|
||||||
:content-types []
|
:accepts ["application/xml" "application/json"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:auth-names []}))
|
||||||
:auth-names []})))
|
|
||||||
|
|
||||||
(defn login-user
|
(defn login-user
|
||||||
"Logs user into the system
|
"Logs user into the system
|
||||||
"
|
"
|
||||||
([] (login-user nil))
|
[username password ]
|
||||||
([optional-params]
|
(:data (login-user-with-http-info username password)))
|
||||||
(:data (login-user-with-http-info optional-params))))
|
|
||||||
|
|
||||||
(defn logout-user-with-http-info
|
(defn logout-user-with-http-info
|
||||||
"Logs out current logged in user session
|
"Logs out current logged in user session
|
||||||
@ -137,7 +129,7 @@
|
|||||||
:query-params {}
|
:query-params {}
|
||||||
:form-params {}
|
:form-params {}
|
||||||
:content-types []
|
:content-types []
|
||||||
:accepts ["application/json" "application/xml"]
|
:accepts ["application/xml" "application/json"]
|
||||||
:auth-names []}))
|
:auth-names []}))
|
||||||
|
|
||||||
(defn logout-user
|
(defn logout-user
|
||||||
@ -149,22 +141,20 @@
|
|||||||
(defn update-user-with-http-info
|
(defn update-user-with-http-info
|
||||||
"Updated user
|
"Updated user
|
||||||
This can only be done by the logged in user."
|
This can only be done by the logged in user."
|
||||||
([username ] (update-user-with-http-info username nil))
|
[username body ]
|
||||||
([username {:keys [body ]}]
|
(call-api "/user/{username}" :put
|
||||||
(call-api "/user/{username}" :put
|
{:path-params {"username" username }
|
||||||
{:path-params {"username" username }
|
:header-params {}
|
||||||
:header-params {}
|
:query-params {}
|
||||||
:query-params {}
|
:form-params {}
|
||||||
:form-params {}
|
:body-param body
|
||||||
:body-param body
|
:content-types []
|
||||||
:content-types []
|
:accepts ["application/xml" "application/json"]
|
||||||
:accepts ["application/json" "application/xml"]
|
:auth-names []}))
|
||||||
:auth-names []})))
|
|
||||||
|
|
||||||
(defn update-user
|
(defn update-user
|
||||||
"Updated user
|
"Updated user
|
||||||
This can only be done by the logged in user."
|
This can only be done by the logged in user."
|
||||||
([username ] (update-user username nil))
|
[username body ]
|
||||||
([username optional-params]
|
(:data (update-user-with-http-info username body)))
|
||||||
(:data (update-user-with-http-info username optional-params))))
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user