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: TrivialController, 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 addId[T <: Resource[T]](t: T): T

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

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

    Permalink
  10. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  19. 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
  20. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

    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