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

endpoints.documented.algebra.Responses.scala Maven / Gradle / Ivy

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

import scala.language.higherKinds

/**
  * Algebra interface for describing responses.
  *
  * This interface is modeled after [[endpoints.algebra.Responses]] but some
  * methods take additional parameters carrying documentation.
  */
trait Responses {

  /** Information carried by a response */
  type Response[A]

  /**
    * Empty response.
    */
  def emptyResponse(documentation: String): Response[Unit]

  /**
    * Text response.
    */
  def textResponse(documentation: String): Response[String]

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy