Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type API = NamedRoutes ActionRoutes
- newtype ActionID = ActionID {}
- actionIdFromString :: String -> Maybe ActionID
- data ActionRoutes mode = ActionRoutes {}
- data CreateActionV1 = CreateAction {
- names :: !ActionNamesV1
- source :: !ActionSourceV1
- data CreateActionResponseV2
- newtype ActionSourceV1 = ActionSource {}
- data ActionNamesV1
- newtype CUE = CUE {}
- data InputV2 = Input {}
- data ActionV2 = Action {}
Documentation
type API = NamedRoutes ActionRoutes Source #
Instances
FromJSON ActionID Source # | |
ToJSON ActionID Source # | |
Defined in IOHK.Cicero.API.Action | |
Eq ActionID Source # | |
Ord ActionID Source # | |
Defined in IOHK.Cicero.API.Action | |
ToHttpApiData ActionID Source # | |
Defined in IOHK.Cicero.API.Action toUrlPiece :: ActionID -> Text # toEncodedUrlPiece :: ActionID -> Builder # toHeader :: ActionID -> ByteString # toQueryParam :: ActionID -> Text # |
data ActionRoutes mode Source #
Action routes in the Cicero API
Instances
Generic (ActionRoutes mode) Source # | |
Defined in IOHK.Cicero.API.Action type Rep (ActionRoutes mode) :: Type -> Type # from :: ActionRoutes mode -> Rep (ActionRoutes mode) x # to :: Rep (ActionRoutes mode) x -> ActionRoutes mode # | |
type Rep (ActionRoutes mode) Source # | |
Defined in IOHK.Cicero.API.Action type Rep (ActionRoutes mode) = D1 ('MetaData "ActionRoutes" "IOHK.Cicero.API.Action" "cicero-api-0.1.2.0-9y64LgroRO6CqnkOALTEuu" 'False) (C1 ('MetaCons "ActionRoutes" 'PrefixI 'True) (S1 ('MetaSel ('Just "create") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (mode :- (ReqBody '[JSON] CreateActionV1 :> Post '[JSON] CreateActionResponseV2))) :*: S1 ('MetaSel ('Just "get") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (mode :- (Capture "id" ActionID :> Get '[JSON] ActionV2))))) |
data CreateActionV1 Source #
Instances
ToJSON CreateActionV1 Source # | |
Defined in IOHK.Cicero.API.Action toJSON :: CreateActionV1 -> Value # toEncoding :: CreateActionV1 -> Encoding # toJSONList :: [CreateActionV1] -> Value # toEncodingList :: [CreateActionV1] -> Encoding # |
data CreateActionResponseV2 Source #
CreateActionOnly !ActionV2 | The specific action created Returned if an |
CreateActionAll ![ActionV2] | All actions created Returned if |
Instances
FromJSON CreateActionResponseV2 Source # | |
Defined in IOHK.Cicero.API.Action | |
ToJSON CreateActionResponseV2 Source # | |
Defined in IOHK.Cicero.API.Action toJSON :: CreateActionResponseV2 -> Value # toEncoding :: CreateActionResponseV2 -> Encoding # toJSONList :: [CreateActionResponseV2] -> Value # |
newtype ActionSourceV1 Source #
The source of an action, as a go-getter URL
Instances
FromJSON ActionSourceV1 Source # | |
Defined in IOHK.Cicero.API.Action parseJSON :: Value -> Parser ActionSourceV1 # parseJSONList :: Value -> Parser [ActionSourceV1] # | |
ToJSON ActionSourceV1 Source # | |
Defined in IOHK.Cicero.API.Action toJSON :: ActionSourceV1 -> Value # toEncoding :: ActionSourceV1 -> Encoding # toJSONList :: [ActionSourceV1] -> Value # toEncodingList :: [ActionSourceV1] -> Encoding # | |
IsString ActionSourceV1 Source # | |
Defined in IOHK.Cicero.API.Action fromString :: String -> ActionSourceV1 # |
data ActionNamesV1 Source #
The action names to add from a given ActionSourceV1
An input to a job