package router2
- Alphabetic
- By Inheritance
- router2
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
MacroImpls extends AnyRef
A macro bundle that builds ResourceRouterBuilders specialized to particular types.
-
case class
NaptimePlayRouter(naptimeRoutes: NaptimeRoutes, prefix: String) extends play.api.routing.Router with StrictLogging with Product with Serializable
Handles routing for Naptime resources in an idiomatic fashion for Play projects.
Handles routing for Naptime resources in an idiomatic fashion for Play projects.
To use this router, include in your routes file something like:
# Include Naptime resources -> /api org.coursera.naptime.router2.PlayNaptimeRouter
Requests matching the prefix for naptime resources will then be routed appropriately.
- naptimeRoutes
Collects the common data structures useful for request routing, including the router builders, as well as the routers themselves.
- prefix
The prefix path under which the resources should be served (in the example above:
/api).
- Annotations
- @Singleton()
- class NestingCollectionResourceRouter[CollectionResourceType <: CollectionResource[_, _, _]] extends ResourceRouter with StrictLogging
-
trait
ResourceRouter extends AnyRef
The core interface for the router.
The core interface for the router. Implement this interface in order to be able to route your requests.
Note: typically, a macro implements these functions for individual resources by subclassing one of the types below.
-
trait
ResourceRouterBuilder extends AnyRef
Use me to build a router that can be used to route requests.
- type RouteAction = EssentialAction with RequestTaggingHandler
-
class
Router extends AnyRef
The macro-based router for Naptime.
The macro-based router for Naptime. This should be instantiated in the Play! application's Global and hooked into the Global's
onRouteRequestmethod.
Value Members
- object AttributesProvider extends StrictLogging
- object CollectionResourceRouter
- object CourierQueryParsers extends StrictLogging
- object NestingCollectionResourceRouter
- object Router