package resources
- Alphabetic
- Public
- All
Type Members
-
trait
CollectionResource[ParentResource <: Resource[_], K, M] extends Resource[M]
Defines methods that collection resources can implement
-
abstract
class
CourierCollectionResource[K, M <: ScalaRecordTemplate] extends NestedCourierCollectionResource[RootResource, K, M]
If the resource is a courier model, extending from CourierCollectionResource removes some boilerplate.
If the resource is a courier model, extending from CourierCollectionResource removes some boilerplate.
If you have a nested resource, check out NestedCourierCollectionResource.
- K
The key type of the resource.
- M
The "value" type of the resource.
-
abstract
class
NestedCourierCollectionResource[ParentResource <: Resource[_], K, M <: ScalaRecordTemplate] extends CollectionResource[ParentResource, K, M]
If the resource is a courier model, extending from NestedCourierCollectionResource removes some boilerplate.
If the resource is a courier model, extending from NestedCourierCollectionResource removes some boilerplate.
Aside from automating some of the boilerplate away, it functions the same as a standard CollectionResource. If the resource is a top level resource, check out the CourierCollectionResource abstract class.
To configure customized fields, use the following snippet:
override implicit lazy val Fields = super.FIelds.withRelated(...)
- ParentResource
The parent resource (for nesting purposes). If it is a top level, check out: CourierCollectionResource
- K
The key type of the resource.
- M
The "value" type of the resource.
-
trait
Resource[M] extends AnyRef
Base Resource trait: mostly a marker trait wrapper methods for model serialization
-
sealed
trait
RootResource extends Resource[Unit]
The root resource for nesting purposes.
-
trait
TopLevelCollectionResource[K, M] extends CollectionResource[RootResource, K, M]
All collection resource that are not a sub-resource of any other resource should extend this.
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.
Value Members
- object RootResource extends RootResource