kuber-3.1.0.0
Safe HaskellNone
LanguageHaskell2010

Cardano.Kuber.Http.Spec

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)))))) #