All Downloads are FREE. Search and download functionalities are using the official Maven repository.

clojure.api.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
{{=< >=}}(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]
            )
  (:import (java.io File)))

<#operations><#operation>
(defn-spec -with-http-info any?
  "<&summary><#notes>
  <¬es>"<#hasOptionalParams>
  ([<#allParams><#required><#isFile>^File  <^-last>, ] (-with-http-info<#allParams><#required>  nil))
  <#hasOptionalParams>([<#allParams><#required><#isFile>^File  <^-last>, <#hasOptionalParams>{:keys [<#allParams><^required><#isFile>^File <^-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> ]
  <#hasOptionalParams>            :accepts       [<#produces>"<& mediaType>"<^-last> ]
  <#hasOptionalParams>            :auth-names    [<#authMethods>"<&name>"<^-last> ]})<#hasOptionalParams>))

(defn-spec  <#returnType><^returnType>any?
  "<&summary><#notes>
  <¬es>"<#hasOptionalParams>
  ([<#allParams><#required><#isFile>^File  <^-last>, ] (<#allParams><#required>  nil))
  <#hasOptionalParams>([<#allParams><#required><#isFile>^File  <^-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>))






© 2015 - 2024 Weber Informatics LLC | Privacy Policy