clojure.api.mustache Maven / Gradle / Ivy
{{=< >=}}(ns .
(:require [.core :refer [call-api check-required-params with-collection-format *api-context*]]
[clojure.spec.alpha :as s]
[spec-tools.core :as st]
[orchestra.core :refer [defn-spec]]
<#operations><#operation><#-first><#vendorExtensions.x-models>[.<.> :refer :all]
-first>)
(:import (java.io File)))
<#operations><#operation>
(defn-spec -with-http-info any?
"<&summary><#notes>
<¬es>"<#hasOptionalParams>
([<#allParams><#required><#isFile>^File <^-last>, -last>] (-with-http-info<#allParams><#required> nil))
<#hasOptionalParams>([<#allParams><#required><#isFile>^File <^-last>, -last><#hasOptionalParams>{:keys [<#allParams><^required><#isFile>^File <^-last> -last>]} (s/map-of keyword? any?)]<#hasRequiredParams>
<#hasOptionalParams> (check-required-params<#allParams><#required> )
<#hasOptionalParams> (call-api "" :
<#hasOptionalParams> {:path-params {<#pathParams>"" <#collectionFormat>(with-collection-format :) <^collectionFormat> }
<#hasOptionalParams> :header-params {<#headerParams>"" <#collectionFormat>(with-collection-format :) <^collectionFormat> }
<#hasOptionalParams> :query-params {<#queryParams>"" <#collectionFormat>(with-collection-format :) <^collectionFormat> }
<#hasOptionalParams> :form-params {<#formParams>"" <#collectionFormat>(with-collection-format :) <^collectionFormat> }<#bodyParam>
<#hasOptionalParams> :body-param
<#hasOptionalParams> :content-types [<#consumes>"<& mediaType>"<^-last> -last>]
<#hasOptionalParams> :accepts [<#produces>"<& mediaType>"<^-last> -last>]
<#hasOptionalParams> :auth-names [<#authMethods>"<&name>"<^-last> -last>]})<#hasOptionalParams>))
(defn-spec <#returnType> <^returnType>any?
"<&summary><#notes>
<¬es>"<#hasOptionalParams>
([<#allParams><#required><#isFile>^File <^-last>, -last>] (<#allParams><#required> nil))
<#hasOptionalParams>([<#allParams><#required><#isFile>^File <^-last>, -last><#hasOptionalParams>optional-params any?]
<#hasOptionalParams> (let [res (:data (-with-http-info<#allParams><#required> <#hasOptionalParams> optional-params))]
<#hasOptionalParams> (if (:decode-models *api-context*)
<#hasOptionalParams> (st/decode <#returnType> <^returnType>any? res st/string-transformer)
<#hasOptionalParams> res))<#hasOptionalParams>))