Module
Payload.Client.ClientApi
- Package
- purescript-payload
- Repository
- hoodunit/purescript-payload
#ClientApi Source
class ClientApi routesSpec client | routesSpec -> client where
Members
mkClientApi :: forall r. Options -> Spec { routes :: routesSpec | r } -> client
Instances
(Union rootSpec DefaultParentRoute mergedSpec, Nub mergedSpec rootSpecWithDefaults, TypeEquals (Record rootSpecWithDefaults) { guards :: guards, params :: Record rootParams | childRoutes }, RowToList childRoutes childRoutesList, ClientApiList childRoutesList "" rootParams (Record client)) => ClientApi (Record rootSpec) (Record client)
#ClientApiList Source
class ClientApiList (routesSpecList :: RowList Type) (basePath :: Symbol) (baseParams :: Row Type) client | routesSpecList -> client where
Members
mkClientApiList :: Options -> Proxy routesSpecList -> Proxy basePath -> Proxy (Record baseParams) -> client
Instances
ClientApiList Nil basePath baseParams (Record ())
(IsSymbol routeName, IsSymbol routeNameWithOptions, IsSymbol method, IsSymbol path, Cons routeName (ClientFn payload res) remClient remClient', Cons routeNameWithOptions (ClientFnWithOptions payload res) remClient' client, Append routeName "_" routeNameWithOptions, Lacks routeName remClient, Lacks routeNameWithOptions remClient', Queryable (Route method path routeSpec) basePath baseParams payload res, ClientApiList remRoutes basePath baseParams (Record remClient)) => ClientApiList (Cons routeName (Route method path routeSpec) remRoutes) basePath baseParams (Record client)
(IsSymbol parentName, IsSymbol basePath, IsSymbol path, EncodeUrl path childParams, Union parentSpec DefaultParentRoute mergedSpec, Nub mergedSpec parentSpecWithDefaults, TypeEquals (Record parentSpecWithDefaults) { guards :: parentGuards, params :: Record parentParams | childRoutes }, Union baseParams parentParams childParams, Cons parentName (Record childClient) remClient client, RowToList childRoutes childRoutesList, Append basePath path childBasePath, ClientApiList childRoutesList childBasePath childParams (Record childClient), Lacks parentName remClient, ClientApiList remRoutes basePath baseParams (Record remClient)) => ClientApiList (Cons parentName (Routes path (Record parentSpec)) remRoutes) basePath baseParams (Record client)
- Modules
- Payload.
Client - Payload.
Client. ClientApi - Payload.
Client. DecodeResponse - Payload.
Client. EncodeBody - Payload.
Client. EncodeParam - Payload.
Client. Internal. EncodeUri - Payload.
Client. Internal. Query - Payload.
Client. Internal. Url - Payload.
Client. Options - Payload.
Client. QueryParams - Payload.
Client. Queryable - Payload.
Client. Response - Payload.
ContentType - Payload.
Debug - Payload.
Headers - Payload.
Internal. QueryParsing - Payload.
Internal. Route - Payload.
Internal. UrlParsing - Payload.
Internal. Utils - Payload.
ResponseTypes - Payload.
Server - Payload.
Server. Cookies - Payload.
Server. DecodeBody - Payload.
Server. Guards - Payload.
Server. Handleable - Payload.
Server. Handlers - Payload.
Server. Internal. GuardParsing - Payload.
Server. Internal. MimeTypes - Payload.
Server. Internal. OmitEmpty - Payload.
Server. Internal. Query - Payload.
Server. Internal. Querystring - Payload.
Server. Internal. Request - Payload.
Server. Internal. ServerResponse - Payload.
Server. Internal. Trie - Payload.
Server. Internal. Url - Payload.
Server. Internal. UrlString - Payload.
Server. Params - Payload.
Server. Path - Payload.
Server. QueryParams - Payload.
Server. Response - Payload.
Server. Routable - Payload.
Server. Status - Payload.
Spec - Payload.
TypeErrors