<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-comment">{-
   OpenAPI Petstore

   This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \&quot; \\

   OpenAPI Version: 3.0.1
   OpenAPI Petstore API version: 1.0.0
   Generated by OpenAPI Generator (https://openapi-generator.tech)
-}</span><span>
</span><span id="line-10"></span><span>
</span><span id="line-11"></span><span class="annot"><span class="hs-comment">{-|
Module : OpenAPIPetstore.API.Pet
-}</span></span><span>
</span><span id="line-14"></span><span>
</span><span id="line-15"></span><span class="hs-pragma">{-# LANGUAGE FlexibleContexts #-}</span><span>
</span><span id="line-16"></span><span class="hs-pragma">{-# LANGUAGE FlexibleInstances #-}</span><span>
</span><span id="line-17"></span><span class="hs-pragma">{-# LANGUAGE MonoLocalBinds #-}</span><span>
</span><span id="line-18"></span><span class="hs-pragma">{-# LANGUAGE MultiParamTypeClasses #-}</span><span>
</span><span id="line-19"></span><span class="hs-pragma">{-# LANGUAGE OverloadedStrings #-}</span><span>
</span><span id="line-20"></span><span class="hs-pragma">{-# OPTIONS_GHC -fno-warn-name-shadowing -fno-warn-unused-binds -fno-warn-unused-imports #-}</span><span>
</span><span id="line-21"></span><span>
</span><span id="line-22"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">OpenAPIPetstore.API.Pet</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-23"></span><span>
</span><span id="line-24"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Core.html"><span class="hs-identifier">OpenAPIPetstore.Core</span></a></span><span>
</span><span id="line-25"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html"><span class="hs-identifier">OpenAPIPetstore.MimeTypes</span></a></span><span>
</span><span id="line-26"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html"><span class="hs-identifier">OpenAPIPetstore.Model</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">M</span></span><span>
</span><span id="line-27"></span><span>
</span><span id="line-28"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Aeson</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">A</span></span><span>
</span><span id="line-29"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.ByteString</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">B</span></span><span>
</span><span id="line-30"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.ByteString.Lazy</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">BL</span></span><span>
</span><span id="line-31"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Data</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">P</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="hs-identifier">Typeable</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="hs-identifier">TypeRep</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="hs-identifier">typeOf</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="hs-identifier">typeRep</span></span><span class="hs-special">)</span><span>
</span><span id="line-32"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Foldable</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">P</span></span><span>
</span><span id="line-33"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Map</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">Map</span></span><span>
</span><span id="line-34"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Maybe</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">P</span></span><span>
</span><span id="line-35"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Proxy</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">P</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="hs-identifier">Proxy</span></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-36"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Set</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">Set</span></span><span>
</span><span id="line-37"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.String</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">P</span></span><span>
</span><span id="line-38"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Text</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">T</span></span><span>
</span><span id="line-39"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Text.Encoding</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">T</span></span><span>
</span><span id="line-40"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Text.Lazy</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">TL</span></span><span>
</span><span id="line-41"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Text.Lazy.Encoding</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">TL</span></span><span>
</span><span id="line-42"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Data.Time</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">TI</span></span><span>
</span><span id="line-43"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Network.HTTP.Client.MultipartFormData</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">NH</span></span><span>
</span><span id="line-44"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Network.HTTP.Media</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">ME</span></span><span>
</span><span id="line-45"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Network.HTTP.Types</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">NH</span></span><span>
</span><span id="line-46"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Web.FormUrlEncoded</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">WH</span></span><span>
</span><span id="line-47"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Web.HttpApiData</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">WH</span></span><span>
</span><span id="line-48"></span><span>
</span><span id="line-49"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><span class="hs-identifier">Data.Text</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="hs-identifier">Text</span></span><span class="hs-special">)</span><span>
</span><span id="line-50"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><span class="hs-identifier">GHC.Base</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="hs-operator">(&lt;|&gt;)</span></span><span class="hs-special">)</span><span>
</span><span id="line-51"></span><span>
</span><span id="line-52"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><span class="hs-identifier">Prelude</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="hs-operator">(==)</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-operator">(/=)</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-operator">($)</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="hs-operator">(.)</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-operator">(&lt;$&gt;)</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-operator">(&lt;*&gt;)</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-operator">(&gt;&gt;=)</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">Maybe</span></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">Bool</span></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">Char</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">Double</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">FilePath</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">Float</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">Int</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">Integer</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">String</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">fmap</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">undefined</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">mempty</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">maybe</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">pure</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">Monad</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">Applicative</span></span><span class="hs-special">,</span><span class="annot"><span class="hs-identifier">Functor</span></span><span class="hs-special">)</span><span>
</span><span id="line-53"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><span class="hs-identifier">Prelude</span></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">P</span></span><span>
</span><span id="line-54"></span><span>
</span><span id="line-55"></span><span class="annot"><span class="hs-comment">-- * Operations</span></span><span>
</span><span id="line-56"></span><span>
</span><span id="line-57"></span><span>
</span><span id="line-58"></span><span class="annot"><span class="hs-comment">-- ** Pet</span></span><span>
</span><span id="line-59"></span><span>
</span><span id="line-60"></span><span class="annot"><span class="hs-comment">-- *** addPet</span></span><span>
</span><span id="line-61"></span><span>
</span><span id="line-62"></span><span class="hs-comment">-- | @POST \/pet@</span><span>
</span><span id="line-63"></span><span class="hs-comment">-- </span><span>
</span><span id="line-64"></span><span class="hs-comment">-- Add a new pet to the store</span><span>
</span><span id="line-65"></span><span class="hs-comment">-- </span><span>
</span><span id="line-66"></span><span class="hs-comment">-- AuthMethod: 'AuthOAuthPetstoreAuth'</span><span>
</span><span id="line-67"></span><span class="hs-comment">-- </span><span>
</span><span id="line-68"></span><span id="local-6989586621679165908"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#addPet"><span class="hs-identifier hs-type">addPet</span></a></span><span>
</span><span id="line-69"></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#AddPet"><span class="hs-identifier hs-type">AddPet</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165908"><span class="hs-identifier hs-type">contentType</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeRender"><span class="hs-identifier hs-type">MimeRender</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165908"><span class="hs-identifier hs-type">contentType</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#Pet"><span class="hs-identifier hs-type">Pet</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-70"></span><span>  </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#ContentType"><span class="hs-identifier hs-type">ContentType</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165908"><span class="hs-identifier hs-type">contentType</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ request content-type ('MimeType')</span></span><span>
</span><span id="line-71"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#Pet"><span class="hs-identifier hs-type">Pet</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ &quot;body&quot; -  Pet object that needs to be added to the store</span></span><span>
</span><span id="line-72"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Core.html#OpenAPIPetstoreRequest"><span class="hs-identifier hs-type">OpenAPIPetstoreRequest</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#AddPet"><span class="hs-identifier hs-type">AddPet</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165908"><span class="hs-identifier hs-type">contentType</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#NoContent"><span class="hs-identifier hs-type">NoContent</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span></span><span>
</span><span id="line-73"></span><span id="addPet"><span class="annot"><span class="annottext">addPet :: forall contentType.
(Consumes AddPet contentType, MimeRender contentType Pet) =&gt;
ContentType contentType
-&gt; Pet
-&gt; OpenAPIPetstoreRequest
     AddPet contentType NoContent MimeNoContent
</span><a href="OpenAPIPetstore.API.Pet.html#addPet"><span class="hs-identifier hs-var hs-var">addPet</span></a></span></span><span> </span><span class="annot"><span class="annottext">ContentType contentType
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621679166064"><span class="annot"><span class="annottext">Pet
</span><a href="#local-6989586621679166064"><span class="hs-identifier hs-var">body</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-74"></span><span>  </span><span class="annot"><span class="annottext">Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest
     AddPet contentType NoContent MimeNoContent
forall req contentType res accept.
Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_mkRequest"><span class="hs-identifier hs-var">_mkRequest</span></a></span><span> </span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;POST&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">ByteString
</span><span class="hs-string">&quot;/pet&quot;</span></span><span class="hs-special">]</span><span>
</span><span id="line-75"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest AddPet contentType NoContent MimeNoContent
-&gt; Proxy AuthOAuthPetstoreAuth
-&gt; OpenAPIPetstoreRequest
     AddPet contentType NoContent MimeNoContent
forall authMethod req contentType res accept.
AuthMethod authMethod =&gt;
OpenAPIPetstoreRequest req contentType res accept
-&gt; Proxy authMethod
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_hasAuthType"><span class="hs-operator hs-var">`_hasAuthType`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy AuthOAuthPetstoreAuth
forall {k} (t :: k). Proxy t
</span><span class="hs-identifier hs-var">P.Proxy</span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">P.Proxy</span></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#AuthOAuthPetstoreAuth"><span class="hs-identifier hs-type">AuthOAuthPetstoreAuth</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-76"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest AddPet contentType NoContent MimeNoContent
-&gt; Pet
-&gt; OpenAPIPetstoreRequest
     AddPet contentType NoContent MimeNoContent
forall req param contentType res accept.
(HasBodyParam req param, Consumes req contentType,
 MimeRender contentType param) =&gt;
OpenAPIPetstoreRequest req contentType res accept
-&gt; param -&gt; OpenAPIPetstoreRequest req contentType res accept
forall contentType res accept.
(Consumes AddPet contentType, MimeRender contentType Pet) =&gt;
OpenAPIPetstoreRequest AddPet contentType res accept
-&gt; Pet -&gt; OpenAPIPetstoreRequest AddPet contentType res accept
</span><a href="OpenAPIPetstore.Core.html#setBodyParam"><span class="hs-operator hs-var">`setBodyParam`</span></a></span><span> </span><span class="annot"><span class="annottext">Pet
</span><a href="#local-6989586621679166064"><span class="hs-identifier hs-var">body</span></a></span><span>
</span><span id="line-77"></span><span>
</span><span id="line-78"></span><span class="hs-keyword">data</span><span> </span><span id="AddPet"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#AddPet"><span class="hs-identifier hs-var">AddPet</span></a></span></span><span> </span><span>
</span><span id="line-79"></span><span>
</span><span id="line-80"></span><span class="annot"><span class="hs-comment">-- | /Body Param/ &quot;body&quot; - Pet object that needs to be added to the store</span></span><span>
</span><span id="line-81"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679166070"><span class="annot"><a href="OpenAPIPetstore.Core.html#HasBodyParam"><span class="hs-identifier hs-type">HasBodyParam</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#AddPet"><span class="hs-identifier hs-type">AddPet</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#Pet"><span class="hs-identifier hs-type">Pet</span></a></span></span><span> </span><span>
</span><span id="line-82"></span><span>
</span><span id="line-83"></span><span class="annot"><span class="hs-comment">-- | @application/xml@</span></span><span>
</span><span id="line-84"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#AddPet"><span class="hs-identifier hs-type">AddPet</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeXML"><span class="hs-identifier hs-type">MimeXML</span></a></span><span>
</span><span id="line-85"></span><span class="annot"><span class="hs-comment">-- | @application/json@</span></span><span>
</span><span id="line-86"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#AddPet"><span class="hs-identifier hs-type">AddPet</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeJSON"><span class="hs-identifier hs-type">MimeJSON</span></a></span><span>
</span><span id="line-87"></span><span>
</span><span id="line-88"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#AddPet"><span class="hs-identifier hs-type">AddPet</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span><span>
</span><span id="line-89"></span><span>
</span><span id="line-90"></span><span>
</span><span id="line-91"></span><span class="annot"><span class="hs-comment">-- *** deletePet</span></span><span>
</span><span id="line-92"></span><span>
</span><span id="line-93"></span><span class="hs-comment">-- | @DELETE \/pet\/{petId}@</span><span>
</span><span id="line-94"></span><span class="hs-comment">-- </span><span>
</span><span id="line-95"></span><span class="hs-comment">-- Deletes a pet</span><span>
</span><span id="line-96"></span><span class="hs-comment">-- </span><span>
</span><span id="line-97"></span><span class="hs-comment">-- AuthMethod: 'AuthOAuthPetstoreAuth'</span><span>
</span><span id="line-98"></span><span class="hs-comment">-- </span><span>
</span><span id="line-99"></span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#deletePet"><span class="hs-identifier hs-type">deletePet</span></a></span><span>
</span><span id="line-100"></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#PetId"><span class="hs-identifier hs-type">PetId</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ &quot;petId&quot; -  Pet id to delete</span></span><span>
</span><span id="line-101"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Core.html#OpenAPIPetstoreRequest"><span class="hs-identifier hs-type">OpenAPIPetstoreRequest</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#DeletePet"><span class="hs-identifier hs-type">DeletePet</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#NoContent"><span class="hs-identifier hs-type">NoContent</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span><span>
</span><span id="line-102"></span><span id="deletePet"><span class="annot"><span class="annottext">deletePet :: PetId
-&gt; OpenAPIPetstoreRequest
     DeletePet MimeNoContent NoContent MimeNoContent
</span><a href="OpenAPIPetstore.API.Pet.html#deletePet"><span class="hs-identifier hs-var hs-var">deletePet</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#PetId"><span class="hs-identifier hs-type">PetId</span></a></span><span> </span><span id="local-6989586621679166093"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679166093"><span class="hs-identifier hs-var">petId</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-103"></span><span>  </span><span class="annot"><span class="annottext">Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest
     DeletePet MimeNoContent NoContent MimeNoContent
forall req contentType res accept.
Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_mkRequest"><span class="hs-identifier hs-var">_mkRequest</span></a></span><span> </span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;DELETE&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">ByteString
</span><span class="hs-string">&quot;/pet/&quot;</span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Integer -&gt; ByteString
forall a. ToHttpApiData a =&gt; a -&gt; ByteString
</span><a href="OpenAPIPetstore.Core.html#toPath"><span class="hs-identifier hs-var">toPath</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679166093"><span class="hs-identifier hs-var">petId</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-104"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest
  DeletePet MimeNoContent NoContent MimeNoContent
-&gt; Proxy AuthOAuthPetstoreAuth
-&gt; OpenAPIPetstoreRequest
     DeletePet MimeNoContent NoContent MimeNoContent
forall authMethod req contentType res accept.
AuthMethod authMethod =&gt;
OpenAPIPetstoreRequest req contentType res accept
-&gt; Proxy authMethod
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_hasAuthType"><span class="hs-operator hs-var">`_hasAuthType`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy AuthOAuthPetstoreAuth
forall {k} (t :: k). Proxy t
</span><span class="hs-identifier hs-var">P.Proxy</span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">P.Proxy</span></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#AuthOAuthPetstoreAuth"><span class="hs-identifier hs-type">AuthOAuthPetstoreAuth</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-105"></span><span>
</span><span id="line-106"></span><span class="hs-keyword">data</span><span> </span><span id="DeletePet"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#DeletePet"><span class="hs-identifier hs-var">DeletePet</span></a></span></span><span>  </span><span>
</span><span id="line-107"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679166097"><span class="annot"><a href="OpenAPIPetstore.Core.html#HasOptionalParam"><span class="hs-identifier hs-type">HasOptionalParam</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#DeletePet"><span class="hs-identifier hs-type">DeletePet</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#ApiKey"><span class="hs-identifier hs-type">ApiKey</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-108"></span><span>  </span><span id="local-6989586621679166107"><span class="annot"><span class="annottext">applyOptionalParam :: forall contentType res accept.
OpenAPIPetstoreRequest DeletePet contentType res accept
-&gt; ApiKey
-&gt; OpenAPIPetstoreRequest DeletePet contentType res accept
</span><a href="#local-6989586621679166107"><span class="hs-identifier hs-var hs-var hs-var hs-var">applyOptionalParam</span></a></span></span><span> </span><span id="local-6989586621679166109"><span class="annot"><span class="annottext">OpenAPIPetstoreRequest DeletePet contentType res accept
</span><a href="#local-6989586621679166109"><span class="hs-identifier hs-var">req</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#ApiKey"><span class="hs-identifier hs-type">ApiKey</span></a></span><span> </span><span id="local-6989586621679166111"><span class="annot"><span class="annottext">Text
</span><a href="#local-6989586621679166111"><span class="hs-identifier hs-var">xs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-109"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest DeletePet contentType res accept
</span><a href="#local-6989586621679166109"><span class="hs-identifier hs-var">req</span></a></span><span> </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest DeletePet contentType res accept
-&gt; [Header]
-&gt; OpenAPIPetstoreRequest DeletePet contentType res accept
forall req contentType res accept.
OpenAPIPetstoreRequest req contentType res accept
-&gt; [Header] -&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#addHeader"><span class="hs-operator hs-var">`addHeader`</span></a></span><span> </span><span class="annot"><span class="annottext">(HeaderName, Text) -&gt; [Header]
forall a. ToHttpApiData a =&gt; (HeaderName, a) -&gt; [Header]
</span><a href="OpenAPIPetstore.Core.html#toHeader"><span class="hs-identifier hs-var">toHeader</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">HeaderName
</span><span class="hs-string">&quot;api_key&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Text
</span><a href="#local-6989586621679166111"><span class="hs-identifier hs-var">xs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-110"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#DeletePet"><span class="hs-identifier hs-type">DeletePet</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span><span>
</span><span id="line-111"></span><span>
</span><span id="line-112"></span><span>
</span><span id="line-113"></span><span class="annot"><span class="hs-comment">-- *** findPetsByStatus</span></span><span>
</span><span id="line-114"></span><span>
</span><span id="line-115"></span><span class="hs-comment">-- | @GET \/pet\/findByStatus@</span><span>
</span><span id="line-116"></span><span class="hs-comment">-- </span><span>
</span><span id="line-117"></span><span class="hs-comment">-- Finds Pets by status</span><span>
</span><span id="line-118"></span><span class="hs-comment">-- </span><span>
</span><span id="line-119"></span><span class="hs-comment">-- Multiple status values can be provided with comma separated strings</span><span>
</span><span id="line-120"></span><span class="hs-comment">-- </span><span>
</span><span id="line-121"></span><span class="hs-comment">-- AuthMethod: 'AuthOAuthPetstoreAuth'</span><span>
</span><span id="line-122"></span><span class="hs-comment">-- </span><span>
</span><span id="line-123"></span><span id="local-6989586621679165968"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#findPetsByStatus"><span class="hs-identifier hs-type">findPetsByStatus</span></a></span><span>
</span><span id="line-124"></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Accept"><span class="hs-identifier hs-type">Accept</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165968"><span class="hs-identifier hs-type">accept</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ request accept ('MimeType')</span></span><span>
</span><span id="line-125"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#Status"><span class="hs-identifier hs-type">Status</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ &quot;status&quot; -  Status values that need to be considered for filter</span></span><span>
</span><span id="line-126"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Core.html#OpenAPIPetstoreRequest"><span class="hs-identifier hs-type">OpenAPIPetstoreRequest</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#FindPetsByStatus"><span class="hs-identifier hs-type">FindPetsByStatus</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span><span> </span><span class="hs-special">[</span><span class="annot"><a href="OpenAPIPetstore.Model.html#Pet"><span class="hs-identifier hs-type">Pet</span></a></span><span class="hs-special">]</span><span> </span><span class="annot"><a href="#local-6989586621679165968"><span class="hs-identifier hs-type">accept</span></a></span></span><span>
</span><span id="line-127"></span><span id="findPetsByStatus"><span class="annot"><span class="annottext">findPetsByStatus :: forall accept.
Accept accept
-&gt; Status
-&gt; OpenAPIPetstoreRequest
     FindPetsByStatus MimeNoContent [Pet] accept
</span><a href="OpenAPIPetstore.API.Pet.html#findPetsByStatus"><span class="hs-identifier hs-var hs-var">findPetsByStatus</span></a></span></span><span>  </span><span class="annot"><span class="annottext">Accept accept
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#Status"><span class="hs-identifier hs-type">Status</span></a></span><span> </span><span id="local-6989586621679166125"><span class="annot"><span class="annottext">[E'Status2]
</span><a href="#local-6989586621679166125"><span class="hs-identifier hs-var">status</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-128"></span><span>  </span><span class="annot"><span class="annottext">Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest
     FindPetsByStatus MimeNoContent [Pet] accept
forall req contentType res accept.
Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_mkRequest"><span class="hs-identifier hs-var">_mkRequest</span></a></span><span> </span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;GET&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">ByteString
</span><span class="hs-string">&quot;/pet/findByStatus&quot;</span></span><span class="hs-special">]</span><span>
</span><span id="line-129"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest FindPetsByStatus MimeNoContent [Pet] accept
-&gt; Proxy AuthOAuthPetstoreAuth
-&gt; OpenAPIPetstoreRequest
     FindPetsByStatus MimeNoContent [Pet] accept
forall authMethod req contentType res accept.
AuthMethod authMethod =&gt;
OpenAPIPetstoreRequest req contentType res accept
-&gt; Proxy authMethod
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_hasAuthType"><span class="hs-operator hs-var">`_hasAuthType`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy AuthOAuthPetstoreAuth
forall {k} (t :: k). Proxy t
</span><span class="hs-identifier hs-var">P.Proxy</span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">P.Proxy</span></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#AuthOAuthPetstoreAuth"><span class="hs-identifier hs-type">AuthOAuthPetstoreAuth</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-130"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest FindPetsByStatus MimeNoContent [Pet] accept
-&gt; [QueryItem]
-&gt; OpenAPIPetstoreRequest
     FindPetsByStatus MimeNoContent [Pet] accept
forall req contentType res accept.
OpenAPIPetstoreRequest req contentType res accept
-&gt; [QueryItem] -&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#addQuery"><span class="hs-operator hs-var">`addQuery`</span></a></span><span> </span><span class="annot"><span class="annottext">CollectionFormat -&gt; (Method, Maybe [E'Status2]) -&gt; [QueryItem]
forall a.
ToHttpApiData a =&gt;
CollectionFormat -&gt; (Method, Maybe [a]) -&gt; [QueryItem]
</span><a href="OpenAPIPetstore.Core.html#toQueryColl"><span class="hs-identifier hs-var">toQueryColl</span></a></span><span> </span><span class="annot"><span class="annottext">CollectionFormat
</span><a href="OpenAPIPetstore.Core.html#CommaSeparated"><span class="hs-identifier hs-var">CommaSeparated</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;status&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">[E'Status2] -&gt; Maybe [E'Status2]
forall a. a -&gt; Maybe a
</span><span class="hs-identifier hs-var">Just</span></span><span> </span><span class="annot"><span class="annottext">[E'Status2]
</span><a href="#local-6989586621679166125"><span class="hs-identifier hs-var">status</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-131"></span><span>
</span><span id="line-132"></span><span class="hs-keyword">data</span><span> </span><span id="FindPetsByStatus"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#FindPetsByStatus"><span class="hs-identifier hs-var">FindPetsByStatus</span></a></span></span><span>  </span><span>
</span><span id="line-133"></span><span class="annot"><span class="hs-comment">-- | @application/xml@</span></span><span>
</span><span id="line-134"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#FindPetsByStatus"><span class="hs-identifier hs-type">FindPetsByStatus</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeXML"><span class="hs-identifier hs-type">MimeXML</span></a></span><span>
</span><span id="line-135"></span><span class="annot"><span class="hs-comment">-- | @application/json@</span></span><span>
</span><span id="line-136"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#FindPetsByStatus"><span class="hs-identifier hs-type">FindPetsByStatus</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeJSON"><span class="hs-identifier hs-type">MimeJSON</span></a></span><span>
</span><span id="line-137"></span><span>
</span><span id="line-138"></span><span>
</span><span id="line-139"></span><span class="annot"><span class="hs-comment">-- *** findPetsByTags</span></span><span>
</span><span id="line-140"></span><span>
</span><span id="line-141"></span><span class="hs-comment">-- | @GET \/pet\/findByTags@</span><span>
</span><span id="line-142"></span><span class="hs-comment">-- </span><span>
</span><span id="line-143"></span><span class="hs-comment">-- Finds Pets by tags</span><span>
</span><span id="line-144"></span><span class="hs-comment">-- </span><span>
</span><span id="line-145"></span><span class="hs-comment">-- Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.</span><span>
</span><span id="line-146"></span><span class="hs-comment">-- </span><span>
</span><span id="line-147"></span><span class="hs-comment">-- AuthMethod: 'AuthOAuthPetstoreAuth'</span><span>
</span><span id="line-148"></span><span class="hs-comment">-- </span><span>
</span><span id="line-149"></span><span id="local-6989586621679165982"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#findPetsByTags"><span class="hs-identifier hs-type">findPetsByTags</span></a></span><span>
</span><span id="line-150"></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Accept"><span class="hs-identifier hs-type">Accept</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165982"><span class="hs-identifier hs-type">accept</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ request accept ('MimeType')</span></span><span>
</span><span id="line-151"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#Tags"><span class="hs-identifier hs-type">Tags</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ &quot;tags&quot; -  Tags to filter by</span></span><span>
</span><span id="line-152"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Core.html#OpenAPIPetstoreRequest"><span class="hs-identifier hs-type">OpenAPIPetstoreRequest</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#FindPetsByTags"><span class="hs-identifier hs-type">FindPetsByTags</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span><span> </span><span class="hs-special">[</span><span class="annot"><a href="OpenAPIPetstore.Model.html#Pet"><span class="hs-identifier hs-type">Pet</span></a></span><span class="hs-special">]</span><span> </span><span class="annot"><a href="#local-6989586621679165982"><span class="hs-identifier hs-type">accept</span></a></span></span><span>
</span><span id="line-153"></span><span id="findPetsByTags"><span class="annot"><span class="annottext">findPetsByTags :: forall accept.
Accept accept
-&gt; Tags
-&gt; OpenAPIPetstoreRequest FindPetsByTags MimeNoContent [Pet] accept
</span><a href="OpenAPIPetstore.API.Pet.html#findPetsByTags"><span class="hs-identifier hs-var hs-var">findPetsByTags</span></a></span></span><span>  </span><span class="annot"><span class="annottext">Accept accept
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#Tags"><span class="hs-identifier hs-type">Tags</span></a></span><span> </span><span id="local-6989586621679166142"><span class="annot"><span class="annottext">[Text]
</span><a href="#local-6989586621679166142"><span class="hs-identifier hs-var">tags</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-154"></span><span>  </span><span class="annot"><span class="annottext">Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest FindPetsByTags MimeNoContent [Pet] accept
forall req contentType res accept.
Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_mkRequest"><span class="hs-identifier hs-var">_mkRequest</span></a></span><span> </span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;GET&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">ByteString
</span><span class="hs-string">&quot;/pet/findByTags&quot;</span></span><span class="hs-special">]</span><span>
</span><span id="line-155"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest FindPetsByTags MimeNoContent [Pet] accept
-&gt; Proxy AuthOAuthPetstoreAuth
-&gt; OpenAPIPetstoreRequest FindPetsByTags MimeNoContent [Pet] accept
forall authMethod req contentType res accept.
AuthMethod authMethod =&gt;
OpenAPIPetstoreRequest req contentType res accept
-&gt; Proxy authMethod
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_hasAuthType"><span class="hs-operator hs-var">`_hasAuthType`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy AuthOAuthPetstoreAuth
forall {k} (t :: k). Proxy t
</span><span class="hs-identifier hs-var">P.Proxy</span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">P.Proxy</span></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#AuthOAuthPetstoreAuth"><span class="hs-identifier hs-type">AuthOAuthPetstoreAuth</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-156"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest FindPetsByTags MimeNoContent [Pet] accept
-&gt; [QueryItem]
-&gt; OpenAPIPetstoreRequest FindPetsByTags MimeNoContent [Pet] accept
forall req contentType res accept.
OpenAPIPetstoreRequest req contentType res accept
-&gt; [QueryItem] -&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#addQuery"><span class="hs-operator hs-var">`addQuery`</span></a></span><span> </span><span class="annot"><span class="annottext">CollectionFormat -&gt; (Method, Maybe [Text]) -&gt; [QueryItem]
forall a.
ToHttpApiData a =&gt;
CollectionFormat -&gt; (Method, Maybe [a]) -&gt; [QueryItem]
</span><a href="OpenAPIPetstore.Core.html#toQueryColl"><span class="hs-identifier hs-var">toQueryColl</span></a></span><span> </span><span class="annot"><span class="annottext">CollectionFormat
</span><a href="OpenAPIPetstore.Core.html#CommaSeparated"><span class="hs-identifier hs-var">CommaSeparated</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;tags&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">[Text] -&gt; Maybe [Text]
forall a. a -&gt; Maybe a
</span><span class="hs-identifier hs-var">Just</span></span><span> </span><span class="annot"><span class="annottext">[Text]
</span><a href="#local-6989586621679166142"><span class="hs-identifier hs-var">tags</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-157"></span><span>
</span><span id="line-158"></span><span class="hs-pragma">{-# DEPRECATED</span><span> </span><span class="hs-pragma">findPetsByTags</span><span> </span><span class="hs-pragma">&quot;&quot;</span><span> </span><span class="hs-pragma">#-}</span><span>
</span><span id="line-159"></span><span>
</span><span id="line-160"></span><span class="hs-keyword">data</span><span> </span><span id="FindPetsByTags"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#FindPetsByTags"><span class="hs-identifier hs-var">FindPetsByTags</span></a></span></span><span>  </span><span>
</span><span id="line-161"></span><span class="annot"><span class="hs-comment">-- | @application/xml@</span></span><span>
</span><span id="line-162"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#FindPetsByTags"><span class="hs-identifier hs-type">FindPetsByTags</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeXML"><span class="hs-identifier hs-type">MimeXML</span></a></span><span>
</span><span id="line-163"></span><span class="annot"><span class="hs-comment">-- | @application/json@</span></span><span>
</span><span id="line-164"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#FindPetsByTags"><span class="hs-identifier hs-type">FindPetsByTags</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeJSON"><span class="hs-identifier hs-type">MimeJSON</span></a></span><span>
</span><span id="line-165"></span><span>
</span><span id="line-166"></span><span>
</span><span id="line-167"></span><span class="annot"><span class="hs-comment">-- *** getPetById</span></span><span>
</span><span id="line-168"></span><span>
</span><span id="line-169"></span><span class="hs-comment">-- | @GET \/pet\/{petId}@</span><span>
</span><span id="line-170"></span><span class="hs-comment">-- </span><span>
</span><span id="line-171"></span><span class="hs-comment">-- Find pet by ID</span><span>
</span><span id="line-172"></span><span class="hs-comment">-- </span><span>
</span><span id="line-173"></span><span class="hs-comment">-- Returns a single pet</span><span>
</span><span id="line-174"></span><span class="hs-comment">-- </span><span>
</span><span id="line-175"></span><span class="hs-comment">-- AuthMethod: 'AuthApiKeyApiKey'</span><span>
</span><span id="line-176"></span><span class="hs-comment">-- </span><span>
</span><span id="line-177"></span><span id="local-6989586621679165986"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#getPetById"><span class="hs-identifier hs-type">getPetById</span></a></span><span>
</span><span id="line-178"></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Accept"><span class="hs-identifier hs-type">Accept</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165986"><span class="hs-identifier hs-type">accept</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ request accept ('MimeType')</span></span><span>
</span><span id="line-179"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#PetId"><span class="hs-identifier hs-type">PetId</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ &quot;petId&quot; -  ID of pet to return</span></span><span>
</span><span id="line-180"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Core.html#OpenAPIPetstoreRequest"><span class="hs-identifier hs-type">OpenAPIPetstoreRequest</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#GetPetById"><span class="hs-identifier hs-type">GetPetById</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#Pet"><span class="hs-identifier hs-type">Pet</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165986"><span class="hs-identifier hs-type">accept</span></a></span></span><span>
</span><span id="line-181"></span><span id="getPetById"><span class="annot"><span class="annottext">getPetById :: forall accept.
Accept accept
-&gt; PetId
-&gt; OpenAPIPetstoreRequest GetPetById MimeNoContent Pet accept
</span><a href="OpenAPIPetstore.API.Pet.html#getPetById"><span class="hs-identifier hs-var hs-var">getPetById</span></a></span></span><span>  </span><span class="annot"><span class="annottext">Accept accept
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#PetId"><span class="hs-identifier hs-type">PetId</span></a></span><span> </span><span id="local-6989586621679166156"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679166156"><span class="hs-identifier hs-var">petId</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-182"></span><span>  </span><span class="annot"><span class="annottext">Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest GetPetById MimeNoContent Pet accept
forall req contentType res accept.
Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_mkRequest"><span class="hs-identifier hs-var">_mkRequest</span></a></span><span> </span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;GET&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">ByteString
</span><span class="hs-string">&quot;/pet/&quot;</span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Integer -&gt; ByteString
forall a. ToHttpApiData a =&gt; a -&gt; ByteString
</span><a href="OpenAPIPetstore.Core.html#toPath"><span class="hs-identifier hs-var">toPath</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679166156"><span class="hs-identifier hs-var">petId</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-183"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest GetPetById MimeNoContent Pet accept
-&gt; Proxy AuthApiKeyApiKey
-&gt; OpenAPIPetstoreRequest GetPetById MimeNoContent Pet accept
forall authMethod req contentType res accept.
AuthMethod authMethod =&gt;
OpenAPIPetstoreRequest req contentType res accept
-&gt; Proxy authMethod
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_hasAuthType"><span class="hs-operator hs-var">`_hasAuthType`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy AuthApiKeyApiKey
forall {k} (t :: k). Proxy t
</span><span class="hs-identifier hs-var">P.Proxy</span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">P.Proxy</span></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#AuthApiKeyApiKey"><span class="hs-identifier hs-type">AuthApiKeyApiKey</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-184"></span><span>
</span><span id="line-185"></span><span class="hs-keyword">data</span><span> </span><span id="GetPetById"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#GetPetById"><span class="hs-identifier hs-var">GetPetById</span></a></span></span><span>  </span><span>
</span><span id="line-186"></span><span class="annot"><span class="hs-comment">-- | @application/xml@</span></span><span>
</span><span id="line-187"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#GetPetById"><span class="hs-identifier hs-type">GetPetById</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeXML"><span class="hs-identifier hs-type">MimeXML</span></a></span><span>
</span><span id="line-188"></span><span class="annot"><span class="hs-comment">-- | @application/json@</span></span><span>
</span><span id="line-189"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#GetPetById"><span class="hs-identifier hs-type">GetPetById</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeJSON"><span class="hs-identifier hs-type">MimeJSON</span></a></span><span>
</span><span id="line-190"></span><span>
</span><span id="line-191"></span><span>
</span><span id="line-192"></span><span class="annot"><span class="hs-comment">-- *** updatePet</span></span><span>
</span><span id="line-193"></span><span>
</span><span id="line-194"></span><span class="hs-comment">-- | @PUT \/pet@</span><span>
</span><span id="line-195"></span><span class="hs-comment">-- </span><span>
</span><span id="line-196"></span><span class="hs-comment">-- Update an existing pet</span><span>
</span><span id="line-197"></span><span class="hs-comment">-- </span><span>
</span><span id="line-198"></span><span class="hs-comment">-- AuthMethod: 'AuthOAuthPetstoreAuth'</span><span>
</span><span id="line-199"></span><span class="hs-comment">-- </span><span>
</span><span id="line-200"></span><span id="local-6989586621679165991"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#updatePet"><span class="hs-identifier hs-type">updatePet</span></a></span><span>
</span><span id="line-201"></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePet"><span class="hs-identifier hs-type">UpdatePet</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165991"><span class="hs-identifier hs-type">contentType</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeRender"><span class="hs-identifier hs-type">MimeRender</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165991"><span class="hs-identifier hs-type">contentType</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#Pet"><span class="hs-identifier hs-type">Pet</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-202"></span><span>  </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#ContentType"><span class="hs-identifier hs-type">ContentType</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165991"><span class="hs-identifier hs-type">contentType</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ request content-type ('MimeType')</span></span><span>
</span><span id="line-203"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#Pet"><span class="hs-identifier hs-type">Pet</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ &quot;body&quot; -  Pet object that needs to be added to the store</span></span><span>
</span><span id="line-204"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Core.html#OpenAPIPetstoreRequest"><span class="hs-identifier hs-type">OpenAPIPetstoreRequest</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePet"><span class="hs-identifier hs-type">UpdatePet</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679165991"><span class="hs-identifier hs-type">contentType</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#NoContent"><span class="hs-identifier hs-type">NoContent</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span></span><span>
</span><span id="line-205"></span><span id="updatePet"><span class="annot"><span class="annottext">updatePet :: forall contentType.
(Consumes UpdatePet contentType, MimeRender contentType Pet) =&gt;
ContentType contentType
-&gt; Pet
-&gt; OpenAPIPetstoreRequest
     UpdatePet contentType NoContent MimeNoContent
</span><a href="OpenAPIPetstore.API.Pet.html#updatePet"><span class="hs-identifier hs-var hs-var">updatePet</span></a></span></span><span> </span><span class="annot"><span class="annottext">ContentType contentType
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621679166173"><span class="annot"><span class="annottext">Pet
</span><a href="#local-6989586621679166173"><span class="hs-identifier hs-var">body</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-206"></span><span>  </span><span class="annot"><span class="annottext">Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest
     UpdatePet contentType NoContent MimeNoContent
forall req contentType res accept.
Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_mkRequest"><span class="hs-identifier hs-var">_mkRequest</span></a></span><span> </span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;PUT&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">ByteString
</span><span class="hs-string">&quot;/pet&quot;</span></span><span class="hs-special">]</span><span>
</span><span id="line-207"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest
  UpdatePet contentType NoContent MimeNoContent
-&gt; Proxy AuthOAuthPetstoreAuth
-&gt; OpenAPIPetstoreRequest
     UpdatePet contentType NoContent MimeNoContent
forall authMethod req contentType res accept.
AuthMethod authMethod =&gt;
OpenAPIPetstoreRequest req contentType res accept
-&gt; Proxy authMethod
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_hasAuthType"><span class="hs-operator hs-var">`_hasAuthType`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy AuthOAuthPetstoreAuth
forall {k} (t :: k). Proxy t
</span><span class="hs-identifier hs-var">P.Proxy</span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">P.Proxy</span></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#AuthOAuthPetstoreAuth"><span class="hs-identifier hs-type">AuthOAuthPetstoreAuth</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-208"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest
  UpdatePet contentType NoContent MimeNoContent
-&gt; Pet
-&gt; OpenAPIPetstoreRequest
     UpdatePet contentType NoContent MimeNoContent
forall req param contentType res accept.
(HasBodyParam req param, Consumes req contentType,
 MimeRender contentType param) =&gt;
OpenAPIPetstoreRequest req contentType res accept
-&gt; param -&gt; OpenAPIPetstoreRequest req contentType res accept
forall contentType res accept.
(Consumes UpdatePet contentType, MimeRender contentType Pet) =&gt;
OpenAPIPetstoreRequest UpdatePet contentType res accept
-&gt; Pet -&gt; OpenAPIPetstoreRequest UpdatePet contentType res accept
</span><a href="OpenAPIPetstore.Core.html#setBodyParam"><span class="hs-operator hs-var">`setBodyParam`</span></a></span><span> </span><span class="annot"><span class="annottext">Pet
</span><a href="#local-6989586621679166173"><span class="hs-identifier hs-var">body</span></a></span><span>
</span><span id="line-209"></span><span>
</span><span id="line-210"></span><span class="hs-keyword">data</span><span> </span><span id="UpdatePet"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePet"><span class="hs-identifier hs-var">UpdatePet</span></a></span></span><span> </span><span>
</span><span id="line-211"></span><span>
</span><span id="line-212"></span><span class="annot"><span class="hs-comment">-- | /Body Param/ &quot;body&quot; - Pet object that needs to be added to the store</span></span><span>
</span><span id="line-213"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679166175"><span class="annot"><a href="OpenAPIPetstore.Core.html#HasBodyParam"><span class="hs-identifier hs-type">HasBodyParam</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePet"><span class="hs-identifier hs-type">UpdatePet</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#Pet"><span class="hs-identifier hs-type">Pet</span></a></span></span><span> </span><span>
</span><span id="line-214"></span><span>
</span><span id="line-215"></span><span class="annot"><span class="hs-comment">-- | @application/xml@</span></span><span>
</span><span id="line-216"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePet"><span class="hs-identifier hs-type">UpdatePet</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeXML"><span class="hs-identifier hs-type">MimeXML</span></a></span><span>
</span><span id="line-217"></span><span class="annot"><span class="hs-comment">-- | @application/json@</span></span><span>
</span><span id="line-218"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePet"><span class="hs-identifier hs-type">UpdatePet</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeJSON"><span class="hs-identifier hs-type">MimeJSON</span></a></span><span>
</span><span id="line-219"></span><span>
</span><span id="line-220"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePet"><span class="hs-identifier hs-type">UpdatePet</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span><span>
</span><span id="line-221"></span><span>
</span><span id="line-222"></span><span>
</span><span id="line-223"></span><span class="annot"><span class="hs-comment">-- *** updatePetWithForm</span></span><span>
</span><span id="line-224"></span><span>
</span><span id="line-225"></span><span class="hs-comment">-- | @POST \/pet\/{petId}@</span><span>
</span><span id="line-226"></span><span class="hs-comment">-- </span><span>
</span><span id="line-227"></span><span class="hs-comment">-- Updates a pet in the store with form data</span><span>
</span><span id="line-228"></span><span class="hs-comment">-- </span><span>
</span><span id="line-229"></span><span class="hs-comment">-- AuthMethod: 'AuthOAuthPetstoreAuth'</span><span>
</span><span id="line-230"></span><span class="hs-comment">-- </span><span>
</span><span id="line-231"></span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#updatePetWithForm"><span class="hs-identifier hs-type">updatePetWithForm</span></a></span><span>
</span><span id="line-232"></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePetWithForm"><span class="hs-identifier hs-type">UpdatePetWithForm</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeFormUrlEncoded"><span class="hs-identifier hs-type">MimeFormUrlEncoded</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-233"></span><span>  </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#PetId"><span class="hs-identifier hs-type">PetId</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ &quot;petId&quot; -  ID of pet that needs to be updated</span></span><span>
</span><span id="line-234"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Core.html#OpenAPIPetstoreRequest"><span class="hs-identifier hs-type">OpenAPIPetstoreRequest</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePetWithForm"><span class="hs-identifier hs-type">UpdatePetWithForm</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeFormUrlEncoded"><span class="hs-identifier hs-type">MimeFormUrlEncoded</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#NoContent"><span class="hs-identifier hs-type">NoContent</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span><span>
</span><span id="line-235"></span><span id="updatePetWithForm"><span class="annot"><span class="annottext">updatePetWithForm :: Consumes UpdatePetWithForm MimeFormUrlEncoded =&gt;
PetId
-&gt; OpenAPIPetstoreRequest
     UpdatePetWithForm MimeFormUrlEncoded NoContent MimeNoContent
</span><a href="OpenAPIPetstore.API.Pet.html#updatePetWithForm"><span class="hs-identifier hs-var hs-var">updatePetWithForm</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#PetId"><span class="hs-identifier hs-type">PetId</span></a></span><span> </span><span id="local-6989586621679166196"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679166196"><span class="hs-identifier hs-var">petId</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-236"></span><span>  </span><span class="annot"><span class="annottext">Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest
     UpdatePetWithForm MimeFormUrlEncoded NoContent MimeNoContent
forall req contentType res accept.
Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_mkRequest"><span class="hs-identifier hs-var">_mkRequest</span></a></span><span> </span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;POST&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">ByteString
</span><span class="hs-string">&quot;/pet/&quot;</span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Integer -&gt; ByteString
forall a. ToHttpApiData a =&gt; a -&gt; ByteString
</span><a href="OpenAPIPetstore.Core.html#toPath"><span class="hs-identifier hs-var">toPath</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679166196"><span class="hs-identifier hs-var">petId</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-237"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest
  UpdatePetWithForm MimeFormUrlEncoded NoContent MimeNoContent
-&gt; Proxy AuthOAuthPetstoreAuth
-&gt; OpenAPIPetstoreRequest
     UpdatePetWithForm MimeFormUrlEncoded NoContent MimeNoContent
forall authMethod req contentType res accept.
AuthMethod authMethod =&gt;
OpenAPIPetstoreRequest req contentType res accept
-&gt; Proxy authMethod
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_hasAuthType"><span class="hs-operator hs-var">`_hasAuthType`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy AuthOAuthPetstoreAuth
forall {k} (t :: k). Proxy t
</span><span class="hs-identifier hs-var">P.Proxy</span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">P.Proxy</span></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#AuthOAuthPetstoreAuth"><span class="hs-identifier hs-type">AuthOAuthPetstoreAuth</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-238"></span><span>
</span><span id="line-239"></span><span class="hs-keyword">data</span><span> </span><span id="UpdatePetWithForm"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePetWithForm"><span class="hs-identifier hs-var">UpdatePetWithForm</span></a></span></span><span>  </span><span>
</span><span id="line-240"></span><span>
</span><span id="line-241"></span><span class="annot"><span class="hs-comment">-- | /Optional Param/ &quot;name&quot; - Updated name of the pet</span></span><span>
</span><span id="line-242"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679166199"><span class="annot"><a href="OpenAPIPetstore.Core.html#HasOptionalParam"><span class="hs-identifier hs-type">HasOptionalParam</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePetWithForm"><span class="hs-identifier hs-type">UpdatePetWithForm</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#Name2"><span class="hs-identifier hs-type">Name2</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-243"></span><span>  </span><span id="local-6989586621679166204"><span class="annot"><span class="annottext">applyOptionalParam :: forall contentType res accept.
OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
-&gt; Name2
-&gt; OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
</span><a href="OpenAPIPetstore.Core.html#applyOptionalParam"><span class="hs-identifier hs-var hs-var hs-var hs-var">applyOptionalParam</span></a></span></span><span> </span><span id="local-6989586621679166205"><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
</span><a href="#local-6989586621679166205"><span class="hs-identifier hs-var">req</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#Name2"><span class="hs-identifier hs-type">Name2</span></a></span><span> </span><span id="local-6989586621679166207"><span class="annot"><span class="annottext">Text
</span><a href="#local-6989586621679166207"><span class="hs-identifier hs-var">xs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-244"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
</span><a href="#local-6989586621679166205"><span class="hs-identifier hs-var">req</span></a></span><span> </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
-&gt; Form
-&gt; OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
forall req contentType res accept.
OpenAPIPetstoreRequest req contentType res accept
-&gt; Form -&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#addForm"><span class="hs-operator hs-var">`addForm`</span></a></span><span> </span><span class="annot"><span class="annottext">(Method, Text) -&gt; Form
forall v. ToHttpApiData v =&gt; (Method, v) -&gt; Form
</span><a href="OpenAPIPetstore.Core.html#toForm"><span class="hs-identifier hs-var">toForm</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;name&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Text
</span><a href="#local-6989586621679166207"><span class="hs-identifier hs-var">xs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-245"></span><span>
</span><span id="line-246"></span><span class="annot"><span class="hs-comment">-- | /Optional Param/ &quot;status&quot; - Updated status of the pet</span></span><span>
</span><span id="line-247"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679166212"><span class="annot"><a href="OpenAPIPetstore.Core.html#HasOptionalParam"><span class="hs-identifier hs-type">HasOptionalParam</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePetWithForm"><span class="hs-identifier hs-type">UpdatePetWithForm</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#StatusText"><span class="hs-identifier hs-type">StatusText</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-248"></span><span>  </span><span id="local-6989586621679166217"><span class="annot"><span class="annottext">applyOptionalParam :: forall contentType res accept.
OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
-&gt; StatusText
-&gt; OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
</span><a href="OpenAPIPetstore.Core.html#applyOptionalParam"><span class="hs-identifier hs-var hs-var hs-var hs-var">applyOptionalParam</span></a></span></span><span> </span><span id="local-6989586621679166218"><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
</span><a href="#local-6989586621679166218"><span class="hs-identifier hs-var">req</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#StatusText"><span class="hs-identifier hs-type">StatusText</span></a></span><span> </span><span id="local-6989586621679166220"><span class="annot"><span class="annottext">Text
</span><a href="#local-6989586621679166220"><span class="hs-identifier hs-var">xs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-249"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
</span><a href="#local-6989586621679166218"><span class="hs-identifier hs-var">req</span></a></span><span> </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
-&gt; Form
-&gt; OpenAPIPetstoreRequest UpdatePetWithForm contentType res accept
forall req contentType res accept.
OpenAPIPetstoreRequest req contentType res accept
-&gt; Form -&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#addForm"><span class="hs-operator hs-var">`addForm`</span></a></span><span> </span><span class="annot"><span class="annottext">(Method, Text) -&gt; Form
forall v. ToHttpApiData v =&gt; (Method, v) -&gt; Form
</span><a href="OpenAPIPetstore.Core.html#toForm"><span class="hs-identifier hs-var">toForm</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;status&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Text
</span><a href="#local-6989586621679166220"><span class="hs-identifier hs-var">xs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-250"></span><span>
</span><span id="line-251"></span><span class="annot"><span class="hs-comment">-- | @application/x-www-form-urlencoded@</span></span><span>
</span><span id="line-252"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePetWithForm"><span class="hs-identifier hs-type">UpdatePetWithForm</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeFormUrlEncoded"><span class="hs-identifier hs-type">MimeFormUrlEncoded</span></a></span><span>
</span><span id="line-253"></span><span>
</span><span id="line-254"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UpdatePetWithForm"><span class="hs-identifier hs-type">UpdatePetWithForm</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeNoContent"><span class="hs-identifier hs-type">MimeNoContent</span></a></span><span>
</span><span id="line-255"></span><span>
</span><span id="line-256"></span><span>
</span><span id="line-257"></span><span class="annot"><span class="hs-comment">-- *** uploadFile</span></span><span>
</span><span id="line-258"></span><span>
</span><span id="line-259"></span><span class="hs-comment">-- | @POST \/pet\/{petId}\/uploadImage@</span><span>
</span><span id="line-260"></span><span class="hs-comment">-- </span><span>
</span><span id="line-261"></span><span class="hs-comment">-- uploads an image</span><span>
</span><span id="line-262"></span><span class="hs-comment">-- </span><span>
</span><span id="line-263"></span><span class="hs-comment">-- AuthMethod: 'AuthOAuthPetstoreAuth'</span><span>
</span><span id="line-264"></span><span class="hs-comment">-- </span><span>
</span><span id="line-265"></span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#uploadFile"><span class="hs-identifier hs-type">uploadFile</span></a></span><span>
</span><span id="line-266"></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFile"><span class="hs-identifier hs-type">UploadFile</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeMultipartFormData"><span class="hs-identifier hs-type">MimeMultipartFormData</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-267"></span><span>  </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#PetId"><span class="hs-identifier hs-type">PetId</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ &quot;petId&quot; -  ID of pet to update</span></span><span>
</span><span id="line-268"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Core.html#OpenAPIPetstoreRequest"><span class="hs-identifier hs-type">OpenAPIPetstoreRequest</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFile"><span class="hs-identifier hs-type">UploadFile</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeMultipartFormData"><span class="hs-identifier hs-type">MimeMultipartFormData</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#ApiResponse"><span class="hs-identifier hs-type">ApiResponse</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeJSON"><span class="hs-identifier hs-type">MimeJSON</span></a></span><span>
</span><span id="line-269"></span><span id="uploadFile"><span class="annot"><span class="annottext">uploadFile :: Consumes UploadFile MimeMultipartFormData =&gt;
PetId
-&gt; OpenAPIPetstoreRequest
     UploadFile MimeMultipartFormData ApiResponse MimeJSON
</span><a href="OpenAPIPetstore.API.Pet.html#uploadFile"><span class="hs-identifier hs-var hs-var">uploadFile</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#PetId"><span class="hs-identifier hs-type">PetId</span></a></span><span> </span><span id="local-6989586621679166235"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679166235"><span class="hs-identifier hs-var">petId</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-270"></span><span>  </span><span class="annot"><span class="annottext">Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest
     UploadFile MimeMultipartFormData ApiResponse MimeJSON
forall req contentType res accept.
Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_mkRequest"><span class="hs-identifier hs-var">_mkRequest</span></a></span><span> </span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;POST&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">ByteString
</span><span class="hs-string">&quot;/pet/&quot;</span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Integer -&gt; ByteString
forall a. ToHttpApiData a =&gt; a -&gt; ByteString
</span><a href="OpenAPIPetstore.Core.html#toPath"><span class="hs-identifier hs-var">toPath</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679166235"><span class="hs-identifier hs-var">petId</span></a></span><span class="hs-special">,</span><span class="annot"><span class="annottext">ByteString
</span><span class="hs-string">&quot;/uploadImage&quot;</span></span><span class="hs-special">]</span><span>
</span><span id="line-271"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest
  UploadFile MimeMultipartFormData ApiResponse MimeJSON
-&gt; Proxy AuthOAuthPetstoreAuth
-&gt; OpenAPIPetstoreRequest
     UploadFile MimeMultipartFormData ApiResponse MimeJSON
forall authMethod req contentType res accept.
AuthMethod authMethod =&gt;
OpenAPIPetstoreRequest req contentType res accept
-&gt; Proxy authMethod
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_hasAuthType"><span class="hs-operator hs-var">`_hasAuthType`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy AuthOAuthPetstoreAuth
forall {k} (t :: k). Proxy t
</span><span class="hs-identifier hs-var">P.Proxy</span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">P.Proxy</span></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#AuthOAuthPetstoreAuth"><span class="hs-identifier hs-type">AuthOAuthPetstoreAuth</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-272"></span><span>
</span><span id="line-273"></span><span class="hs-keyword">data</span><span> </span><span id="UploadFile"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFile"><span class="hs-identifier hs-var">UploadFile</span></a></span></span><span>  </span><span>
</span><span id="line-274"></span><span>
</span><span id="line-275"></span><span class="annot"><span class="hs-comment">-- | /Optional Param/ &quot;additionalMetadata&quot; - Additional data to pass to server</span></span><span>
</span><span id="line-276"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679166238"><span class="annot"><a href="OpenAPIPetstore.Core.html#HasOptionalParam"><span class="hs-identifier hs-type">HasOptionalParam</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFile"><span class="hs-identifier hs-type">UploadFile</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#AdditionalMetadata"><span class="hs-identifier hs-type">AdditionalMetadata</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-277"></span><span>  </span><span id="local-6989586621679166247"><span class="annot"><span class="annottext">applyOptionalParam :: forall contentType res accept.
OpenAPIPetstoreRequest UploadFile contentType res accept
-&gt; AdditionalMetadata
-&gt; OpenAPIPetstoreRequest UploadFile contentType res accept
</span><a href="OpenAPIPetstore.Core.html#applyOptionalParam"><span class="hs-identifier hs-var hs-var hs-var hs-var">applyOptionalParam</span></a></span></span><span> </span><span id="local-6989586621679166248"><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UploadFile contentType res accept
</span><a href="#local-6989586621679166248"><span class="hs-identifier hs-var">req</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#AdditionalMetadata"><span class="hs-identifier hs-type">AdditionalMetadata</span></a></span><span> </span><span id="local-6989586621679166250"><span class="annot"><span class="annottext">Text
</span><a href="#local-6989586621679166250"><span class="hs-identifier hs-var">xs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-278"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UploadFile contentType res accept
</span><a href="#local-6989586621679166248"><span class="hs-identifier hs-var">req</span></a></span><span> </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UploadFile contentType res accept
-&gt; Part -&gt; OpenAPIPetstoreRequest UploadFile contentType res accept
forall req contentType res accept.
OpenAPIPetstoreRequest req contentType res accept
-&gt; Part -&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_addMultiFormPart"><span class="hs-operator hs-var">`_addMultiFormPart`</span></a></span><span> </span><span class="annot"><span class="annottext">Text -&gt; ByteString -&gt; Part
forall (m :: * -&gt; *).
Applicative m =&gt;
Text -&gt; ByteString -&gt; PartM m
</span><span class="hs-identifier hs-var">NH.partLBS</span></span><span> </span><span class="annot"><span class="annottext">Text
</span><span class="hs-string">&quot;additionalMetadata&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">MimeMultipartFormData -&gt; Text -&gt; ByteString
forall mtype x. MimeRender mtype x =&gt; mtype -&gt; x -&gt; ByteString
</span><a href="OpenAPIPetstore.MimeTypes.html#mimeRender%27"><span class="hs-identifier hs-var">mimeRender'</span></a></span><span> </span><span class="annot"><span class="annottext">MimeMultipartFormData
</span><a href="OpenAPIPetstore.MimeTypes.html#MimeMultipartFormData"><span class="hs-identifier hs-var">MimeMultipartFormData</span></a></span><span> </span><span class="annot"><span class="annottext">Text
</span><a href="#local-6989586621679166250"><span class="hs-identifier hs-var">xs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-279"></span><span>
</span><span id="line-280"></span><span class="annot"><span class="hs-comment">-- | /Optional Param/ &quot;file&quot; - file to upload</span></span><span>
</span><span id="line-281"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679166257"><span class="annot"><a href="OpenAPIPetstore.Core.html#HasOptionalParam"><span class="hs-identifier hs-type">HasOptionalParam</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFile"><span class="hs-identifier hs-type">UploadFile</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#File2"><span class="hs-identifier hs-type">File2</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-282"></span><span>  </span><span id="local-6989586621679166261"><span class="annot"><span class="annottext">applyOptionalParam :: forall contentType res accept.
OpenAPIPetstoreRequest UploadFile contentType res accept
-&gt; File2
-&gt; OpenAPIPetstoreRequest UploadFile contentType res accept
</span><a href="OpenAPIPetstore.Core.html#applyOptionalParam"><span class="hs-identifier hs-var hs-var hs-var hs-var">applyOptionalParam</span></a></span></span><span> </span><span id="local-6989586621679166262"><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UploadFile contentType res accept
</span><a href="#local-6989586621679166262"><span class="hs-identifier hs-var">req</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#File2"><span class="hs-identifier hs-type">File2</span></a></span><span> </span><span id="local-6989586621679166264"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679166264"><span class="hs-identifier hs-var">xs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-283"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UploadFile contentType res accept
</span><a href="#local-6989586621679166262"><span class="hs-identifier hs-var">req</span></a></span><span> </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest UploadFile contentType res accept
-&gt; Part -&gt; OpenAPIPetstoreRequest UploadFile contentType res accept
forall req contentType res accept.
OpenAPIPetstoreRequest req contentType res accept
-&gt; Part -&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_addMultiFormPart"><span class="hs-operator hs-var">`_addMultiFormPart`</span></a></span><span> </span><span class="annot"><span class="annottext">Text -&gt; FilePath -&gt; Part
</span><span class="hs-identifier hs-var">NH.partFileSource</span></span><span> </span><span class="annot"><span class="annottext">Text
</span><span class="hs-string">&quot;file&quot;</span></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679166264"><span class="hs-identifier hs-var">xs</span></a></span><span>
</span><span id="line-284"></span><span>
</span><span id="line-285"></span><span class="annot"><span class="hs-comment">-- | @multipart/form-data@</span></span><span>
</span><span id="line-286"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFile"><span class="hs-identifier hs-type">UploadFile</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeMultipartFormData"><span class="hs-identifier hs-type">MimeMultipartFormData</span></a></span><span>
</span><span id="line-287"></span><span>
</span><span id="line-288"></span><span class="annot"><span class="hs-comment">-- | @application/json@</span></span><span>
</span><span id="line-289"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFile"><span class="hs-identifier hs-type">UploadFile</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeJSON"><span class="hs-identifier hs-type">MimeJSON</span></a></span><span>
</span><span id="line-290"></span><span>
</span><span id="line-291"></span><span>
</span><span id="line-292"></span><span class="annot"><span class="hs-comment">-- *** uploadFileWithRequiredFile</span></span><span>
</span><span id="line-293"></span><span>
</span><span id="line-294"></span><span class="hs-comment">-- | @POST \/fake\/{petId}\/uploadImageWithRequiredFile@</span><span>
</span><span id="line-295"></span><span class="hs-comment">-- </span><span>
</span><span id="line-296"></span><span class="hs-comment">-- uploads an image (required)</span><span>
</span><span id="line-297"></span><span class="hs-comment">-- </span><span>
</span><span id="line-298"></span><span class="hs-comment">-- AuthMethod: 'AuthOAuthPetstoreAuth'</span><span>
</span><span id="line-299"></span><span class="hs-comment">-- </span><span>
</span><span id="line-300"></span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#uploadFileWithRequiredFile"><span class="hs-identifier hs-type">uploadFileWithRequiredFile</span></a></span><span>
</span><span id="line-301"></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFileWithRequiredFile"><span class="hs-identifier hs-type">UploadFileWithRequiredFile</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeMultipartFormData"><span class="hs-identifier hs-type">MimeMultipartFormData</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-302"></span><span>  </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#RequiredFile"><span class="hs-identifier hs-type">RequiredFile</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ &quot;requiredFile&quot; -  file to upload</span></span><span>
</span><span id="line-303"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#PetId"><span class="hs-identifier hs-type">PetId</span></a></span><span> </span><span class="annot"><span class="hs-comment">-- ^ &quot;petId&quot; -  ID of pet to update</span></span><span>
</span><span id="line-304"></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="OpenAPIPetstore.Core.html#OpenAPIPetstoreRequest"><span class="hs-identifier hs-type">OpenAPIPetstoreRequest</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFileWithRequiredFile"><span class="hs-identifier hs-type">UploadFileWithRequiredFile</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeMultipartFormData"><span class="hs-identifier hs-type">MimeMultipartFormData</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#ApiResponse"><span class="hs-identifier hs-type">ApiResponse</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeJSON"><span class="hs-identifier hs-type">MimeJSON</span></a></span><span>
</span><span id="line-305"></span><span id="uploadFileWithRequiredFile"><span class="annot"><span class="annottext">uploadFileWithRequiredFile :: Consumes UploadFileWithRequiredFile MimeMultipartFormData =&gt;
RequiredFile
-&gt; PetId
-&gt; OpenAPIPetstoreRequest
     UploadFileWithRequiredFile
     MimeMultipartFormData
     ApiResponse
     MimeJSON
</span><a href="OpenAPIPetstore.API.Pet.html#uploadFileWithRequiredFile"><span class="hs-identifier hs-var hs-var">uploadFileWithRequiredFile</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#RequiredFile"><span class="hs-identifier hs-type">RequiredFile</span></a></span><span> </span><span id="local-6989586621679166282"><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679166282"><span class="hs-identifier hs-var">requiredFile</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#PetId"><span class="hs-identifier hs-type">PetId</span></a></span><span> </span><span id="local-6989586621679166283"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679166283"><span class="hs-identifier hs-var">petId</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-306"></span><span>  </span><span class="annot"><span class="annottext">Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest
     UploadFileWithRequiredFile
     MimeMultipartFormData
     ApiResponse
     MimeJSON
forall req contentType res accept.
Method
-&gt; [ByteString]
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_mkRequest"><span class="hs-identifier hs-var">_mkRequest</span></a></span><span> </span><span class="annot"><span class="annottext">Method
</span><span class="hs-string">&quot;POST&quot;</span></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">ByteString
</span><span class="hs-string">&quot;/fake/&quot;</span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Integer -&gt; ByteString
forall a. ToHttpApiData a =&gt; a -&gt; ByteString
</span><a href="OpenAPIPetstore.Core.html#toPath"><span class="hs-identifier hs-var">toPath</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679166283"><span class="hs-identifier hs-var">petId</span></a></span><span class="hs-special">,</span><span class="annot"><span class="annottext">ByteString
</span><span class="hs-string">&quot;/uploadImageWithRequiredFile&quot;</span></span><span class="hs-special">]</span><span>
</span><span id="line-307"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest
  UploadFileWithRequiredFile
  MimeMultipartFormData
  ApiResponse
  MimeJSON
-&gt; Proxy AuthOAuthPetstoreAuth
-&gt; OpenAPIPetstoreRequest
     UploadFileWithRequiredFile
     MimeMultipartFormData
     ApiResponse
     MimeJSON
forall authMethod req contentType res accept.
AuthMethod authMethod =&gt;
OpenAPIPetstoreRequest req contentType res accept
-&gt; Proxy authMethod
-&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_hasAuthType"><span class="hs-operator hs-var">`_hasAuthType`</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Proxy AuthOAuthPetstoreAuth
forall {k} (t :: k). Proxy t
</span><span class="hs-identifier hs-var">P.Proxy</span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">P.Proxy</span></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#AuthOAuthPetstoreAuth"><span class="hs-identifier hs-type">AuthOAuthPetstoreAuth</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-308"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest
  UploadFileWithRequiredFile
  MimeMultipartFormData
  ApiResponse
  MimeJSON
-&gt; Part
-&gt; OpenAPIPetstoreRequest
     UploadFileWithRequiredFile
     MimeMultipartFormData
     ApiResponse
     MimeJSON
forall req contentType res accept.
OpenAPIPetstoreRequest req contentType res accept
-&gt; Part -&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_addMultiFormPart"><span class="hs-operator hs-var">`_addMultiFormPart`</span></a></span><span> </span><span class="annot"><span class="annottext">Text -&gt; FilePath -&gt; Part
</span><span class="hs-identifier hs-var">NH.partFileSource</span></span><span> </span><span class="annot"><span class="annottext">Text
</span><span class="hs-string">&quot;requiredFile&quot;</span></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="#local-6989586621679166282"><span class="hs-identifier hs-var">requiredFile</span></a></span><span>
</span><span id="line-309"></span><span>
</span><span id="line-310"></span><span class="hs-keyword">data</span><span> </span><span id="UploadFileWithRequiredFile"><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFileWithRequiredFile"><span class="hs-identifier hs-var">UploadFileWithRequiredFile</span></a></span></span><span>  </span><span>
</span><span id="line-311"></span><span>
</span><span id="line-312"></span><span class="annot"><span class="hs-comment">-- | /Optional Param/ &quot;additionalMetadata&quot; - Additional data to pass to server</span></span><span>
</span><span id="line-313"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679166286"><span class="annot"><a href="OpenAPIPetstore.Core.html#HasOptionalParam"><span class="hs-identifier hs-type">HasOptionalParam</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFileWithRequiredFile"><span class="hs-identifier hs-type">UploadFileWithRequiredFile</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.Model.html#AdditionalMetadata"><span class="hs-identifier hs-type">AdditionalMetadata</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-314"></span><span>  </span><span id="local-6989586621679166292"><span class="annot"><span class="annottext">applyOptionalParam :: forall contentType res accept.
OpenAPIPetstoreRequest
  UploadFileWithRequiredFile contentType res accept
-&gt; AdditionalMetadata
-&gt; OpenAPIPetstoreRequest
     UploadFileWithRequiredFile contentType res accept
</span><a href="OpenAPIPetstore.Core.html#applyOptionalParam"><span class="hs-identifier hs-var hs-var hs-var hs-var">applyOptionalParam</span></a></span></span><span> </span><span id="local-6989586621679166293"><span class="annot"><span class="annottext">OpenAPIPetstoreRequest
  UploadFileWithRequiredFile contentType res accept
</span><a href="#local-6989586621679166293"><span class="hs-identifier hs-var">req</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="OpenAPIPetstore.Model.html#AdditionalMetadata"><span class="hs-identifier hs-type">AdditionalMetadata</span></a></span><span> </span><span id="local-6989586621679166294"><span class="annot"><span class="annottext">Text
</span><a href="#local-6989586621679166294"><span class="hs-identifier hs-var">xs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-315"></span><span>    </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest
  UploadFileWithRequiredFile contentType res accept
</span><a href="#local-6989586621679166293"><span class="hs-identifier hs-var">req</span></a></span><span> </span><span class="annot"><span class="annottext">OpenAPIPetstoreRequest
  UploadFileWithRequiredFile contentType res accept
-&gt; Part
-&gt; OpenAPIPetstoreRequest
     UploadFileWithRequiredFile contentType res accept
forall req contentType res accept.
OpenAPIPetstoreRequest req contentType res accept
-&gt; Part -&gt; OpenAPIPetstoreRequest req contentType res accept
</span><a href="OpenAPIPetstore.Core.html#_addMultiFormPart"><span class="hs-operator hs-var">`_addMultiFormPart`</span></a></span><span> </span><span class="annot"><span class="annottext">Text -&gt; ByteString -&gt; Part
forall (m :: * -&gt; *).
Applicative m =&gt;
Text -&gt; ByteString -&gt; PartM m
</span><span class="hs-identifier hs-var">NH.partLBS</span></span><span> </span><span class="annot"><span class="annottext">Text
</span><span class="hs-string">&quot;additionalMetadata&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">MimeMultipartFormData -&gt; Text -&gt; ByteString
forall mtype x. MimeRender mtype x =&gt; mtype -&gt; x -&gt; ByteString
</span><a href="OpenAPIPetstore.MimeTypes.html#mimeRender%27"><span class="hs-identifier hs-var">mimeRender'</span></a></span><span> </span><span class="annot"><span class="annottext">MimeMultipartFormData
</span><a href="OpenAPIPetstore.MimeTypes.html#MimeMultipartFormData"><span class="hs-identifier hs-var">MimeMultipartFormData</span></a></span><span> </span><span class="annot"><span class="annottext">Text
</span><a href="#local-6989586621679166294"><span class="hs-identifier hs-var">xs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-316"></span><span>
</span><span id="line-317"></span><span class="annot"><span class="hs-comment">-- | @multipart/form-data@</span></span><span>
</span><span id="line-318"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Consumes"><span class="hs-identifier hs-type">Consumes</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFileWithRequiredFile"><span class="hs-identifier hs-type">UploadFileWithRequiredFile</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeMultipartFormData"><span class="hs-identifier hs-type">MimeMultipartFormData</span></a></span><span>
</span><span id="line-319"></span><span>
</span><span id="line-320"></span><span class="annot"><span class="hs-comment">-- | @application/json@</span></span><span>
</span><span id="line-321"></span><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#Produces"><span class="hs-identifier hs-type">Produces</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.API.Pet.html#UploadFileWithRequiredFile"><span class="hs-identifier hs-type">UploadFileWithRequiredFile</span></a></span><span> </span><span class="annot"><a href="OpenAPIPetstore.MimeTypes.html#MimeJSON"><span class="hs-identifier hs-type">MimeJSON</span></a></span><span>
</span><span id="line-322"></span><span>
</span><span id="line-323"></span></pre></body></html>