Safe Haskell | None |
---|---|
Language | GHC2021 |
Test.Proxy
Documentation
type GiphyAPI = "v1" :> ("gifs" :> (Capture "path" String :> (QueryParam "api_key" String :> (QueryParam "q" String :> (QueryParam "limit" Int :> (QueryParam "offset" Int :> Get '[JSON] Value)))))) Source #
testProxyGiphy :: App () Source #
type YoutubeAPI = "youtube" :> ("v3" :> (Capture "path" String :> (QueryString :> Get '[JSON] Value))) Source #
testProxyYoutube :: App () Source #
type GoogleMapsAPI = "maps" :> (("api" :> ("staticmap" :> (QueryString :> Get '[JSON] Value))) :<|> ("api" :> ("geocode" :> (Capture "path" String :> (QueryString :> Get '[JSON] Value))))) Source #
testProxyGoogleMaps :: App () Source #
type SpotifyAPI = "api" :> ("token" :> (Header "Authorization" String :> (ReqBody '[JSON] Value :> Post '[JSON] Value))) Source #
testProxySpotify :: App () Source #
type SoundcloudAPI = ("resolve" :> (QueryParam' '[Required] "client_id" String :> (QueryParam' '[Required] "url" String :> Get '[JSON] Value))) :<|> ("some-stream" :> (QueryParam' '[Required] "client_id" String :> Get '[JSON] NoContent)) Source #
testProxySoundcloud :: App () Source #