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

  4. trait RequestDecoder[C, S, A] extends AnyRef

    Permalink
  5. trait ResponseEncoder[S, C, A] extends AnyRef

    Permalink

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 GenericArgsDecoder

    Permalink
  5. object GenericResponseEncoder

    Permalink
  6. object RequestConversions

    Permalink
  7. object RequestDecoder

    Permalink
  8. object ResponseConversions

    Permalink
  9. object ResponseEncoder

    Permalink
  10. object SotaRejectionHandler

    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).

  11. object ToResponse

    Permalink
  12. object Validation

    Permalink

Ungrouped