Class

trivial.rest

Rest

Related Doc: package rest

Permalink

class Rest extends AnyRef

Trivial REST: (1) Declare a case class (2) Register it as a Resource, specifying the allowed HTTP methods (3) You get a truly RESTful API, your allowed HTTP methods, and persistence, and caching, for free. (4) -- and a few days later -- when you need to migrate data, simply declare the migration rules

Concepts to explore: Case classes as a schema for JSON Postel's Law / The Robustness Principle - http://en.wikipedia.org/wiki/Robustness_principle Multiple versions of a case class supported at the same time

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Rest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Rest(uriRoot: String, controller: UsableController, serialiser: Serialiser, persister: Persister, validator: RestValidator)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addDelete[T <: Resource[T]](resourceName: String)(implicit arg0: Manifest[T]): Unit

    Permalink
  5. def addGet[T <: Resource[T]](resourceName: String)(implicit arg0: ClassTag[T], arg1: Manifest[T]): Unit

    Permalink
  6. def addGetAll[T <: Resource[T]](resourceName: String)(implicit arg0: Manifest[T]): Unit

    Permalink
  7. def addPost[T <: Resource[T]](resourceName: String)(implicit arg0: Manifest[T]): Unit

    Permalink
  8. def addPut[T <: Resource[T]](resourceName: String)(implicit arg0: Manifest[T]): Unit

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val controller: UsableController

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def migrate[T <: Resource[T]](forwardMigration: (T) ⇒ T = identity[T], backwardsView: (T) ⇒ AnyRef = identity[T], oldResourceName: Option[String] = None)(implicit arg0: ClassTag[T], arg1: Manifest[T]): Either[Failure, Int]

    Permalink
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def pathTo(resourceName: String): String

    Permalink
  23. def prepopulate[T <: Resource[T]](initialPopulation: Seq[T])(implicit arg0: ClassTag[T], arg1: Manifest[T]): Either[Failure, Int]

    Permalink
  24. def resource[T <: Resource[T]](supportedMethods: HttpMethod*)(implicit arg0: ClassTag[T], arg1: Manifest[T]): Rest

    Permalink
  25. def respondChanged[T <: Resource[T]](result: Either[Failure, Int], direction: String)(implicit arg0: Manifest[T]): Future[Response]

    Permalink
  26. val serialiser: Serialiser

    Permalink
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped