The (Hlist-like) collection of ancestor keys has this type.
The (Hlist-like) collection of ancestor keys has this type.
The (HList-like) collection of all keys that identifies a single element of this collection.
The (HList-like) collection of all keys that identifies a single element of this collection.
Helper to easily construct Naptime actions.
Helper to easily construct Naptime actions.
Typically, all actions in a naptime resource will all use the same auth parser and policy, or will want to use the same error handling function for all requests. These resources should do something similar to the following:
class MyResource extends TopLevelCollectionResource[MyKeyType, MyValueType] { def Rest[RACType, ResponseType] = Nap[RACType, ResponseType].auth(myAuthPolicy).catching(errorFn) ... }
Provide a default pagination configuration for the resource that users can override and configure as needed.
Provide a default pagination configuration for the resource that users can override and configure as needed.
A references to the parent resource (used to construct the path key parser).
A references to the parent resource (used to construct the path key parser).
Must be implemented in the resources that this trait is mixed into, typically with a val param.
class MyNestedResource @Inject() ( val parentResource: MyParentResource) extends CollectionResource[KeyType, ElemType] with NestedCollection[MyParentResource, KeyType] { // ... }
All collection resource that are not a sub-resource of any other resource should extend this.
Nested resources should extend the standard CollectionResource trait, supplying the parent resource as the first type parameter.