Package

endpoints.play

routing

Permalink

package routing

Visibility
  1. Public
  2. All

Type Members

  1. trait Assets extends algebra.Assets with Endpoints

    Permalink

    Interpreter for algebra.Assets that performs routing using Play framework

  2. trait BasicAuthentication extends algebra.BasicAuthentication with Endpoints

    Permalink
  3. trait Endpoints extends algebra.Endpoints with Urls with Methods

    Permalink

    Interpreter for algebra.Endpoints that performs routing using Play framework.

    Interpreter for algebra.Endpoints that performs routing using Play framework.

    Consider the following endpoints definition:

    trait MyEndpoints extends algebra.Endpoints with algebra.JsonEntities {
      val inc = endpoint(get(path / "inc" ? qs[Int]("x")), jsonResponse[Int])
    }

    You can get a router for them as follows:

    object MyRouter extends MyEndpoints with play.routing.Endpoints with play.routing.JsonEntities {
    
      val routes = routesFromEndpoints(
        inc.implementedBy(x => x + 1)
      )
    
    }

    Then MyRouter.routes can be used to define a proper Play router as follows:

    val router = play.api.routing.Router.from(MyRouter.routes)
  4. trait LowLevelEndpoints extends algebra.LowLevelEndpoints with Endpoints

    Permalink
  5. trait Methods extends algebra.Methods

    Permalink

    algebra.Methods interpreter that decodes and encodes methods.

  6. trait MuxHandler[Req <: MuxRequest, Resp] extends AnyRef

    Permalink

    A function whose return type depends on the type of the given req.

    A function whose return type depends on the type of the given req.

    Req

    Request base type

    Resp

    Response base type

  7. trait MuxHandlerAsync[Req <: MuxRequest, Resp] extends AnyRef

    Permalink

    A function whose return type depends on the type of the given req.

    A function whose return type depends on the type of the given req.

    Req

    Request base type

    Resp

    Response base type

  8. trait OptionalResponses extends algebra.OptionalResponses with Endpoints

    Permalink
  9. trait Urls extends algebra.Urls

    Permalink

    algebra.Urls interpreter that decodes and encodes URLs.

Ungrouped