play.api.hal

package play.api.hal

Scala model of the JSON Hypertext Application Language according to https://tools.ietf.org/html/draft-kelly-json-hal-06

Attributes

Members list

Type members

Classlikes

object Defaults

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Defaults.type
object Hal

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Hal.type
case class HalLink(rel: String, href: String, deprecation: Option[String], name: Option[String], profile: Option[String], title: Option[String], hreflang: Option[String], `type`: Option[String], linkAttr: JsObject, templated: Boolean)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object HalLinks

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
HalLinks.type
case class HalLinks(links: Vector[HalLink])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class HalResource(links: HalLinks, state: JsObject, embedded: Vector[(String, Vector[HalResource])])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Implicits

Implicits

implicit val halLinkWrites: Writes[HalLinks]
implicit val halResourceWrites: Writes[HalResource]