yaml-rpc-1.0.3: Simple library for network (HTTP REST-like) YAML RPC

Safe HaskellNone

Network.YAML.API

Synopsis

Documentation

data Type Source

Data type description for API

Constructors

TVoid

Like (); YAML notation for it is Void.

TString 
TText 
TInteger 
TDouble 
TMaybe Type

Maybe Type. YAML notation is Maybe Type.

TList Type

[Type]. YAML notation is List Type.

TUser (Map Text Type)

User-defined record type

THaskell Text

Any Haskell type

data Method Source

API method description

Constructors

Method 

Fields

methodArgs :: [Type]

Types of method arguments

methodReturnType :: Type

Method return value type

data API Source

API description

Constructors

API 

Fields

apiUri :: Text

API service identification

apiTypes :: Map Text Type

Exposed data types

apiMethods :: Map Text Method

Exposed methods

readAPI :: FilePath -> ExpQSource

Read API definition from file. Returned expression is of type API.