Interpreter for algebra.Assets that performs routing using Play framework
Instantiation of the Play components for a given server configuration.
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.server.Endpoints with play.server.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)
Interpreter for endpoints.algebra.JsonEntitiesFromCodec that decodes JSON requests and encodes JSON responses.
algebra.Methods interpreter that decodes and encodes methods.
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
.
Request base type
Response base type
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
.
Request base type
Response base type
Play components needed by the interpreter
algebra.Urls interpreter that decodes and encodes URLs.
Server interpreters backed by Play framework