Package

org.coursera.naptime

resources

Permalink

package resources

Visibility
  1. Public
  2. All

Type Members

  1. trait CollectionResource[ParentResource <: Resource[_], K, M] extends Resource[M]

    Permalink

    Defines methods that collection resources can implement

  2. abstract class CourierCollectionResource[K, M <: ScalaRecordTemplate] extends NestedCourierCollectionResource[RootResource, K, M]

    Permalink

    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.

  3. abstract class NestedCourierCollectionResource[ParentResource <: Resource[_], K, M <: ScalaRecordTemplate] extends CollectionResource[ParentResource, K, M]

    Permalink

    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.

  4. trait Resource[M] extends AnyRef

    Permalink

    Base Resource trait: mostly a marker trait wrapper methods for model serialization

  5. sealed trait RootResource extends Resource[Unit]

    Permalink

    The root resource for nesting purposes.

  6. trait TopLevelCollectionResource[K, M] extends CollectionResource[RootResource, K, M]

    Permalink

    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

  1. object RootResource extends RootResource

    Permalink

Ungrouped