Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type KuberServerApi era = ("api" :> ("v3" :> QueryApi era)) :<|> ("api" :> ("v1" :> (KuberApi era :<|> UtilityApi))) #
type QueryApi era = ("protocol-params" :> Get '[JSON] (LedgerProtocolParameters era)) :<|> (("chain-point" :> Get '[JSON] ChainPointModal) :<|> (("current-era" :> Get '[JSON] AnyCardanoEraModal) :<|> (("utxo" :> (QueryParams "address" Text :> (QueryParams "txin" Text :> Get '[JSON] (UtxoModal ConwayEra)))) :<|> (("system-start" :> Get '[JSON] SystemStartModal) :<|> (("genesis-params" :> Get '[JSON] (GenesisParamModal ShelleyEra)) :<|> ("health" :> Get '[JSON] HealthStatusModal)))))) #
type KuberApi era = ("tx" :> (QueryParam "submit" Bool :> (ReqBody '[JSON] (TxBuilder_ era) :> Post '[JSON] TxModal))) :<|> (("tx" :> ("submit" :> (ReqBody '[JSON] SubmitTxModal :> Post '[JSON] TxModal))) :<|> (("time" :> Get '[JSON] TranslationResponse) :<|> (("time" :> ("toslot" :> (ReqBody '[JSON] TimeTranslationReq :> Post '[JSON] TranslationResponse))) :<|> ("time" :> ("fromSlot" :> (ReqBody '[JSON] SlotTranslationReq :> Post '[JSON] TranslationResponse)))))) #
type UtilityApi = ("tx" :> ("fee" :> (ReqBody '[CBORBinary, CBORText, JSON] TxModal :> Post '[JSON] Coin))) :<|> ("tx" :> ("exUnits" :> (ReqBody '[CBORBinary, CBORText, CBORText] TxModal :> Post '[JSON] ExUnitsResponseModal))) #
kuberApiServerProxy :: Proxy (KuberServerApi era) #
data CBORBinary #
Instances
Instances
Accept CBORText # | |
Defined in Cardano.Kuber.Http.MediaType | |
MimeRender CBORBinary a => MimeRender CBORText a # | |
Defined in Cardano.Kuber.Http.MediaType mimeRender :: Proxy CBORText -> a -> ByteString # | |
MimeUnrender CBORBinary a => MimeUnrender CBORText a # | |
Defined in Cardano.Kuber.Http.MediaType mimeUnrender :: Proxy CBORText -> ByteString -> Either String a # mimeUnrenderWithType :: Proxy CBORText -> MediaType -> ByteString -> Either String a # |
data AnyTextType #
Instances
Accept AnyTextType # | |
Defined in Cardano.Kuber.Http.MediaType contentType :: Proxy AnyTextType -> MediaType # | |
MimeUnrender AnyTextType Text # | |
Defined in Cardano.Kuber.Http.MediaType mimeUnrender :: Proxy AnyTextType -> ByteString -> Either String Text # mimeUnrenderWithType :: Proxy AnyTextType -> MediaType -> ByteString -> Either String Text # | |
MimeUnrender AnyTextType Text # | |
Defined in Cardano.Kuber.Http.MediaType mimeUnrender :: Proxy AnyTextType -> ByteString -> Either String Text # mimeUnrenderWithType :: Proxy AnyTextType -> MediaType -> ByteString -> Either String Text # | |
MimeUnrender AnyTextType String # | |
Defined in Cardano.Kuber.Http.MediaType mimeUnrender :: Proxy AnyTextType -> ByteString -> Either String String # mimeUnrenderWithType :: Proxy AnyTextType -> MediaType -> ByteString -> Either String String # |