Module

Presto.Core.Types.API

Package
purescript-presto
Repository
juspay/purescript-presto

#RestEndpoint Source

class RestEndpoint a b | a -> b, b -> a where

Members

#defaultMakeRequest Source

defaultMakeRequest :: forall a x. Generic a x => GenericEncode x => Method -> URL -> Headers -> a -> Request

#defaultMakeRequest_ Source

#defaultDecodeResponse Source

defaultDecodeResponse :: forall a x. Generic a x => GenericDecode x => String -> F a

#RegTokens Source

type RegTokens = { regToken :: String, tokenId :: String, loginToken :: String }

#HeaderField Source

#HeaderValue Source

#URL Source

type URL = String

#Request Source

newtype Request

Constructors

Instances

#Response Source

newtype Response a

Constructors

Instances

#responsePayload Source

responsePayload :: forall a. Response a -> a

#ErrorPayload Source

newtype ErrorPayload

Constructors

Instances