Safe Haskell | None |
---|---|
Language | Haskell98 |
- type Accessor = (String, Maybe Ident)
- data ActionInfo = ActionInfo {
- ident :: Maybe Ident
- postAction :: Bool
- actionType :: ActionType
- actionTarget :: ActionTarget
- resDir :: String
- method :: RequestMethod
- inputs :: [DataDescription]
- outputs :: [DataDescription]
- errors :: [DataDescription]
- params :: [String]
- https :: Bool
- link :: Link
- data ActionType
- = Retrieve
- | Create
- | Delete
- | DeleteMany
- | List
- | Update
- | UpdateMany
- | Modify
- data ActionTarget
- data DataType
- type ResourceId = [String]
- accessLink :: [Accessor] -> Link
- accessors :: Step sid mid aid -> [Accessor]
- chooseType :: NonEmpty DataDescription -> DataDescription
- data DataDesc = DataDesc {
- _dataType :: DataType
- _haskellType :: Type
- _haskellModules :: [ModuleName]
- dataType :: forall cat. ArrowApply cat => Lens cat DataDesc DataType
- haskellType :: forall cat. ArrowApply cat => Lens cat DataDesc Type
- haskellModules :: forall cat. ArrowApply cat => Lens cat DataDesc [ModuleName]
- data DataMeta = DataMeta {
- _dataTypeDesc :: String
- _dataSchema :: Maybe String
- _dataExample :: [String]
- dataTypeDesc :: forall cat. ArrowApply cat => Lens cat DataMeta String
- dataSchema :: forall cat. ArrowApply cat => Lens cat DataMeta (Maybe String)
- dataExample :: forall cat. ArrowApply cat => Lens cat DataMeta [String]
- data DataDescription = DataDescription {}
- desc :: forall cat. ArrowApply cat => Lens cat DataDescription DataDesc
- meta :: forall cat. ArrowApply cat => Lens cat DataDescription DataMeta
- data ResponseType = ResponseType {}
- responseAcceptType :: ResponseType -> [DataType]
- dataTypesToAcceptHeader :: DataType -> [DataType] -> String
- chooseResponseType :: ActionInfo -> ResponseType
- isAccessor :: ActionInfo -> Bool
- listGetterActionInfo :: Resource m s sid mid aid -> String -> Getter mid -> [ActionInfo]
- mkActionDescription :: String -> ActionInfo -> String
- namedActionInfo :: Resource m s sid mid aid -> String -> Endpoint sid mid aid -> [ActionInfo]
- resourceToAccessors :: Resource m s sid mid aid -> [Accessor]
- resourceToActionInfo :: forall m s sid mid aid. Resource m s sid mid aid -> [ActionInfo]
- selectActionInfo :: Link -> String -> Handler m -> ActionInfo
- singleActionInfo :: Resource m s sid mid aid -> Maybe (Id sid) -> String -> [ActionInfo]
Documentation
data ActionInfo Source #
ActionInfo | |
|
data ActionType Source #
type ResourceId = [String] Source #
Representation of resource
accessLink :: [Accessor] -> Link Source #
Core information about the type of the input/output
DataDesc | |
|
haskellType :: forall cat. ArrowApply cat => Lens cat DataDesc Type Source #
haskellModules :: forall cat. ArrowApply cat => Lens cat DataDesc [ModuleName] Source #
Documentation information about the input/output
DataMeta | |
|
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
desc :: forall cat. ArrowApply cat => Lens cat DataDescription DataDesc Source #
meta :: forall cat. ArrowApply cat => Lens cat DataDescription DataMeta Source #
data ResponseType Source #
responseAcceptType :: ResponseType -> [DataType] 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.
isAccessor :: ActionInfo -> Bool Source #
listGetterActionInfo :: Resource m s sid mid aid -> String -> Getter mid -> [ActionInfo] Source #
mkActionDescription :: String -> ActionInfo -> String 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 #
selectActionInfo :: Link -> String -> Handler m -> ActionInfo Source #
singleActionInfo :: Resource m s sid mid aid -> Maybe (Id sid) -> String -> [ActionInfo] Source #