rest-gen-0.20.0.1: Documentation and client generation from rest definition.

Safe HaskellNone
LanguageHaskell98

Rest.Gen.Base.ActionInfo

Synopsis

Documentation

type ResourceId = [String] Source #

Representation of resource

accessors :: Step sid mid aid -> [Accessor] Source #

data DataDesc Source #

Core information about the type of the input/output

Constructors

DataDesc 

Fields

dataType :: forall cat. ArrowApply cat => Lens cat DataDesc DataType Source #

haskellType :: forall cat. ArrowApply cat => Lens cat DataDesc Type Source #

haskellModules :: forall cat. ArrowApply cat => Lens cat DataDesc [ModuleName] Source #

data DataMeta Source #

Documentation information about the input/output

Constructors

DataMeta 

Fields

dataTypeDesc :: forall cat. ArrowApply cat => Lens cat DataMeta String Source #

dataSchema :: forall cat. ArrowApply cat => Lens cat DataMeta (Maybe String) Source #

dataExample :: forall cat. ArrowApply cat => Lens cat DataMeta [String] Source #

data DataDescription Source #

Combines the core and documentation information for input/output

Constructors

DataDescription 

Fields

desc :: forall cat. ArrowApply cat => Lens cat DataDescription DataDesc Source #

meta :: forall cat. ArrowApply cat => Lens cat DataDescription DataMeta Source #

dataTypesToAcceptHeader :: DataType -> [DataType] -> String Source #

First argument is the default accept header to use if there is no output or errors, must be XML or JSON.

listGetterActionInfo :: Resource m s sid mid aid -> String -> Getter mid -> [ActionInfo] Source #

namedActionInfo :: Resource m s sid mid aid -> String -> Endpoint sid mid aid -> [ActionInfo] Source #

resourceToAccessors :: Resource m s sid mid aid -> [Accessor] Source #

resourceToActionInfo :: forall m s sid mid aid. Resource m s sid mid aid -> [ActionInfo] Source #

singleActionInfo :: Resource m s sid mid aid -> Maybe (Id sid) -> String -> [ActionInfo] Source #