package route

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. abstract class ApplicationBaseApiRoute[TX <: Transaction, H <: SidechainBlockHeaderBase, PM <: SidechainBlockBase[TX, H], FPI <: AbstractFeePaymentsInfo, NH <: NodeHistoryBase[TX, H, PM, FPI], NS <: NodeStateBase, NW <: NodeWalletBase, NP <: NodeMemoryPoolBase[TX], NV <: SidechainNodeViewBase[TX, H, PM, FPI, NH, NS, NW, NP]] extends ApiRoute with ApiDirectives with SparkzEncoding with FunctionsApplierOnSidechainNodeView[TX, H, PM, FPI, NH, NS, NW, NP, NV]
  2. abstract class BlockBaseApiRoute[TX <: Transaction, H <: SidechainBlockHeaderBase, PM <: SidechainBlockBase[TX, H], FPI <: AbstractFeePaymentsInfo, NH <: NodeHistoryBase[TX, H, PM, FPI], NS <: NodeStateBase, NW <: NodeWalletBase, NP <: NodeMemoryPoolBase[TX], NV <: SidechainNodeViewBase[TX, H, PM, FPI, NH, NS, NW, NP]] extends SidechainApiRoute[TX, H, PM, FPI, NH, NS, NW, NP, NV] with DisableApiRoute
  3. trait DisableApiRoute extends AnyRef
  4. case class ImportSecretsDetail extends Product with Serializable
    Annotations
    @JsonView()
  5. case class MainchainBlockApiRoute[TX <: Transaction, H <: SidechainBlockHeaderBase, PM <: SidechainBlockBase[TX, H], FPI <: AbstractFeePaymentsInfo, NH <: NodeHistoryBase[TX, H, PM, FPI], NS <: NodeStateBase, NW <: NodeWalletBase, NP <: NodeMemoryPoolBase[TX], NV <: SidechainNodeViewBase[TX, H, PM, FPI, NH, NS, NW, NP]](settings: RESTApiSettings, sidechainNodeViewHolderRef: ActorRef)(implicit context: ActorRefFactory, ec: ExecutionContext, tag: ClassTag[NV]) extends SidechainApiRoute[TX, H, PM, FPI, NH, NS, NW, NP, NV] with SparkzEncoding with Product with Serializable
  6. trait SidechainApiRoute[TX <: Transaction, H <: SidechainBlockHeaderBase, PM <: SidechainBlockBase[TX, H], FPI <: AbstractFeePaymentsInfo, NH <: NodeHistoryBase[TX, H, PM, FPI], S <: NodeStateBase, W <: NodeWalletBase, P <: NodeMemoryPoolBase[TX], NV <: SidechainNodeViewBase[TX, H, PM, FPI, NH, S, W, P]] extends ApiRoute with ApiDirectives
  7. case class SidechainNodeApiRoute[TX <: Transaction, H <: SidechainBlockHeaderBase, PM <: SidechainBlockBase[TX, H], FPI <: AbstractFeePaymentsInfo, NH <: NodeHistoryBase[TX, H, PM, FPI], NS <: NodeStateBase, NW <: NodeWalletBase, NP <: NodeMemoryPoolBase[TX], NV <: SidechainNodeViewBase[TX, H, PM, FPI, NH, NS, NW, NP]](peerManager: ActorRef, networkController: ActorRef, timeProvider: NetworkTimeProvider, settings: RESTApiSettings, sidechainNodeViewHolderRef: ActorRef, app: AbstractSidechainApp, params: NetworkParams, appVersion: String = "")(implicit context: ActorRefFactory, ec: ExecutionContext, tag: ClassTag[NV]) extends SidechainApiRoute[TX, H, PM, FPI, NH, NS, NW, NP, NV] with Product with Serializable
  8. case class SidechainRejectionApiRoute(basePath: String, path: String, settings: RESTApiSettings, sidechainNodeViewHolderRef: ActorRef, errorDetailOpt: Option[String] = None)(implicit context: ActorRefFactory) extends ApiRoute with ApiDirectives with Product with Serializable

    A developer can disable some core api.

    A developer can disable some core api.

    1) Akka library doesn't provide a way, given a Route, to access to its Directives and modify them. 2) Akka library evaluates the route to be executed by selecting those match the uri path and method. The first one matched is executed. 3) SidechainApiRoute, the trait implemented by all core apis, has a variable of type Route initialized at compile time.

    Given 1), 2) and 3), and in order to avoid to apply changes to all core apis, it's possible to disable some uri path by adding a route with a reject directive for that uri path.

    When the application starts, all routes are concatenated in a single composed route. These rejection routes should be concatenated as first.

  9. case class SidechainSubmitterApiRoute[TX <: Transaction, H <: SidechainBlockHeaderBase, PM <: SidechainBlockBase[TX, H], FPI <: AbstractFeePaymentsInfo, NH <: NodeHistoryBase[TX, H, PM, FPI], NS <: AbstractState[TX, H, PM, NS] with NodeStateBase, NW <: NodeWalletBase, NP <: NodeMemoryPoolBase[TX], NV <: SidechainNodeViewBase[TX, H, PM, FPI, NH, NS, NW, NP]](settings: RESTApiSettings, params: NetworkParams, certSubmitterRef: ActorRef, sidechainNodeViewHolderRef: ActorRef, circuitType: CircuitTypes)(implicit context: ActorRefFactory, ec: ExecutionContext, tag: ClassTag[NV]) extends SidechainApiRoute[TX, H, PM, FPI, NH, NS, NW, NP, NV] with ApiDirectives with Product with Serializable
  10. abstract class TransactionBaseApiRoute[TX <: Transaction, H <: SidechainBlockHeaderBase, PM <: SidechainBlockBase[TX, H], FPI <: AbstractFeePaymentsInfo, NH <: NodeHistoryBase[TX, H, PM, FPI], NS <: NodeStateBase, NW <: NodeWalletBase, NP <: NodeMemoryPoolBase[TX], NV <: SidechainNodeViewBase[TX, H, PM, FPI, NH, NS, NW, NP]] extends SidechainApiRoute[TX, H, PM, FPI, NH, NS, NW, NP, NV] with DisableApiRoute
  11. abstract class WalletBaseApiRoute[TX <: Transaction, H <: SidechainBlockHeaderBase, PM <: SidechainBlockBase[TX, H], FPI <: AbstractFeePaymentsInfo, NH <: NodeHistoryBase[TX, H, PM, FPI], NS <: NodeStateBase, NW <: NodeWalletBase, NP <: NodeMemoryPoolBase[TX], NV <: SidechainNodeViewBase[TX, H, PM, FPI, NH, NS, NW, NP]] extends SidechainApiRoute[TX, H, PM, FPI, NH, NS, NW, NP, NV] with DisableApiRoute

Ungrouped