Package

org.genivi.sota

rest

Permalink

package rest

Visibility
  1. Public
  2. All

Type Members

  1. final case class ErrorCode(code: String) extends AnyVal with Product with Serializable

    Permalink
  2. case class ErrorRepresentation(code: ErrorCode, description: String) extends Product with Serializable

    Permalink
  3. final class RefinedMatcher[P] extends AnyRef

    Permalink

    Pathmatchers in Akka HTTP enable the programmer to extract values from the URL.

    Pathmatchers in Akka HTTP enable the programmer to extract values from the URL. Here we extend the pathmatching facility to do validation using the predicate of our refined types. If validation fails, reject the request -- see Handlers.scala for how this is handled.

    See also

    https://github.com/fthomas/refined

    http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0/scala.html

Value Members

  1. object ErrorCode extends Serializable

    Permalink
  2. object ErrorCodes

    Permalink

    Errors are presented to the user of the core and resolver API as JSON objects, this is done semi-automatically by the Circe library.

    Errors are presented to the user of the core and resolver API as JSON objects, this is done semi-automatically by the Circe library.

    See also

    https://github.com/travisbrown/circe

  3. object ErrorRepresentation extends Serializable

    Permalink
  4. object Handlers

    Permalink

    When validation, JSON deserialisation fail or a duplicate entry occures in the database, we complete the request by returning the correct status code and JSON error message (see Errors.scala).

  5. object Validation

    Permalink

Ungrouped