Package

io.pileworx.akka.http.rest

hal

Permalink

package hal

Visibility
  1. Public
  2. All

Type Members

  1. case class Curie(name: String, href: String, templated: Boolean = true) extends Product with Serializable

    Permalink

    Curie support class

    Curie support class

    name

    Name of the curie.

    href

    URI for curie.

    templated

    Hint that curie is a Template URI. Default is true.

  2. case class ForwardedBuilder(req: HttpRequest) extends Product with Serializable

    Permalink

    Builder to construct URI from X-Forwarded headers

    Builder to construct URI from X-Forwarded headers

    req

    The current HTTP Request

  3. trait HalBrowserService extends AnyRef

    Permalink

    akka-http Route to expose a HAL Browser Mix in this trait with ~ halBrowserRoutes to expose a HAL Browser at /halbrowser

  4. class HalException extends Exception

    Permalink

    HAL specific exception

  5. trait HalProtocol extends DefaultJsonProtocol

    Permalink

    Spray JSON support for serializing Link and Curie instances.

  6. case class Link(href: String, templated: Option[Boolean] = None, type: Option[String] = None, deprecation: Option[Boolean] = None, name: Option[String] = None, profile: Option[String] = None, title: Option[String] = None, hreflang: Option[String] = None) extends LinkT with Product with Serializable

    Permalink

    HAL Link

    HAL Link

    href

    URI to referenced resource.

    templated

    Hint that the href is a Template URI.

    type

    Hint for the media type of the referenced resource.

    deprecation

    Hints that the Resource is deprecated. Value is a URI to more information on the deprecation.

    name

    A secondary key for the resource.

    profile

    URI to a profile of the resource conforming to https://tools.ietf.org/html/rfc6906.

    title

    A string intended for labeling the resource.

    hreflang

    A string representing the language of the resource.

    See also

    https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5

  7. trait LinkT extends AnyRef

    Permalink

    Base trait for Link or a Collection of related Links

  8. case class Links(links: Seq[Link]) extends LinkT with Product with Serializable

    Permalink

    Links collection for nesting links.

    Links collection for nesting links.

    links

    Seq of Links to use in builder.

  9. case class ResourceBuilder(withCuries: Option[Seq[Curie]] = None, withData: Option[JsValue] = None, withLinks: Option[Map[String, LinkT]] = None, withEmbedded: Option[Map[String, Seq[JsValue]]] = None, withRequest: Option[HttpRequest] = None) extends HalProtocol with Product with Serializable

    Permalink

    ResourceBuilder for constructing HAL resources

    ResourceBuilder for constructing HAL resources

    withCuries

    Adds curies specific to this resource

    withData

    Adds the primary JSON properties and values

    withLinks

    Adds Links to _links property

    withEmbedded

    Adds Embedded resources to _embedded

    withRequest

    Enables X-Forwarded headers support for proxied requests

  10. case class UrlBuilder(req: HttpRequest) extends Product with Serializable

    Permalink

    Builder to construct URI from HTTP Request URI parts

    Builder to construct URI from HTTP Request URI parts

    req

    The current HTTP Request

Value Members

  1. object ForwardedBuilder extends Serializable

    Permalink
  2. object Href

    Permalink

    Builds the href for links

    Builds the href for links

    If the X-Forwarded headers are available it constructs the URI based on the headers If the Request is available with out X-Forwarded the request URI parts are used. If the Request is not available, no changes are made to the URI

  3. object Relations

    Permalink
  4. object ResourceBuilder extends Serializable

    Permalink

    Global Curies storage.

Ungrouped