All Downloads are FREE. Search and download functionalities are using the official Maven repository.

endpoints.documented.delegate.JsonEntities.scala Maven / Gradle / Ivy

There is a newer version: 0.10.1
Show newest version
package endpoints
package documented
package delegate

/**
  * Interpreter for [[algebra.JsonEntities]] that ignores
  * information related to documentation and delegates to another
  * [[endpoints.algebra.JsonEntities]] interpreter.
  */
trait JsonEntities
  extends algebra.JsonEntities
    with Endpoints {

  val delegate: endpoints.algebra.JsonEntities

  type JsonRequest[A] = delegate.JsonRequest[A]

  def jsonRequest[A : JsonRequest](documentation: Option[String]): delegate.RequestEntity[A] = delegate.jsonRequest[A]

  type JsonResponse[A] = delegate.JsonResponse[A]

  def jsonResponse[A : JsonResponse](documentation: String): delegate.Response[A] = delegate.jsonResponse[A]

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy