Class/Object

endpoints.play.client

Endpoints

Related Docs: object Endpoints | package client

Permalink

class Endpoints extends algebra.Endpoints with Urls with Methods

An interpreter for algebra.Endpoints that builds a client issuing requests using Play’s WSClient HTTP client.

Source
Endpoints.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Endpoints
  2. Methods
  3. Urls
  4. Endpoints
  5. Responses
  6. Requests
  7. SemigroupalSyntax
  8. InvariantFunctorSyntax
  9. Methods
  10. Urls
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Endpoints(host: String, wsClient: WSClient)(implicit executionContext: ExecutionContext)

    Permalink

    host

    Base of the URL of the service that implements the endpoints (e.g. "http://foo.com")

    wsClient

    The underlying client to use

Type Members

  1. type Endpoint[A, B] = (A) ⇒ Future[B]

    Permalink

    A function that, given an A, eventually attempts to decode the B response.

    A function that, given an A, eventually attempts to decode the B response.

    Communication failures and protocol failures are represented by a Future.failed.

    Definition Classes
    Endpoints → Endpoints
  2. implicit class InvariantFunctorSyntax[A, F[_]] extends AnyRef

    Permalink
    Definition Classes
    InvariantFunctorSyntax
  3. type Method = (WSRequest) ⇒ WSRequest

    Permalink

    String representation of the method

    String representation of the method

    Definition Classes
    Methods → Methods
  4. trait Path[A] extends Url[A]

    Permalink
    Definition Classes
    Urls
  5. implicit class PathOps[A] extends AnyRef

    Permalink
    Definition Classes
    Urls
  6. trait QueryString[A] extends AnyRef

    Permalink
    Definition Classes
    Urls
  7. implicit class QueryStringOps[A] extends AnyRef

    Permalink
    Definition Classes
    Urls
  8. type QueryStringParam[A] = (A) ⇒ String

    Permalink
    Definition Classes
    Urls → Urls
  9. type Request[A] = (A) ⇒ Future[WSResponse]

    Permalink

    A function that takes an A information and eventually returns a WSResponse

    A function that takes an A information and eventually returns a WSResponse

    Definition Classes
    Endpoints → Requests
  10. type RequestEntity[A] = (A, WSRequest) ⇒ WSRequest

    Permalink

    A function that, given an A information and a WSRequest, eventually returns a WSResponse

    A function that, given an A information and a WSRequest, eventually returns a WSResponse

    Definition Classes
    Endpoints → Requests
  11. type RequestHeaders[A] = (A, WSRequest) ⇒ WSRequest

    Permalink

    A function that, given an A and a request model, returns an updated request containing additional headers

    A function that, given an A and a request model, returns an updated request containing additional headers

    Definition Classes
    Endpoints → Requests
  12. type Response[A] = (WSResponse) ⇒ Either[Throwable, A]

    Permalink

    Attempts to decode an A from a WSResponse.

    Attempts to decode an A from a WSResponse.

    Definition Classes
    Endpoints → Responses
  13. trait Segment[A] extends AnyRef

    Permalink
    Definition Classes
    Urls
  14. implicit class SemigroupalSyntax[A, F[_]] extends AnyRef

    Permalink
    Definition Classes
    SemigroupalSyntax
  15. trait Url[A] extends AnyRef

    Permalink
    Definition Classes
    Urls

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def Delete: Method

    Permalink
    Definition Classes
    Methods → Methods
  5. def Get: Method

    Permalink
    Definition Classes
    Methods → Methods
  6. def Options: Method

    Permalink
    Definition Classes
    Methods → Methods
  7. def Patch: Method

    Permalink
    Definition Classes
    Methods → Methods
  8. def Post: Method

    Permalink
    Definition Classes
    Methods → Methods
  9. def Put: Method

    Permalink
    Definition Classes
    Methods → Methods
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def chainPaths[A, B](first: Path[A], second: Path[B])(implicit tupler: Tupler[A, B]): Path[Out]

    Permalink
    Definition Classes
    Urls → Urls
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def combineQueryStrings[A, B](first: QueryString[A], second: QueryString[B])(implicit tupler: Tupler[A, B]): QueryString[Out]

    Permalink
    Definition Classes
    Urls → Urls
  14. implicit def dummyPathToUrl[A](p: Path[A]): Url[A]

    Permalink
    Definition Classes
    Urls
  15. lazy val emptyHeaders: RequestHeaders[Unit]

    Permalink

    Does not modify the request

    Does not modify the request

    Definition Classes
    Endpoints → Requests
  16. lazy val emptyRequest: RequestEntity[Unit]

    Permalink
    Definition Classes
    Endpoints → Requests
  17. def emptyResponse(docs: Documentation): Response[Unit]

    Permalink

    Successfully decodes no information from a response

    Successfully decodes no information from a response

    Definition Classes
    Endpoints → Responses
  18. def endpoint[A, B](request: Request[A], response: Response[B], summary: Documentation, description: Documentation): Endpoint[A, B]

    Permalink
    Definition Classes
    Endpoints → Endpoints
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. implicit val executionContext: ExecutionContext

    Permalink
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def get[UrlP, HeadersP](url: Url[UrlP], headers: RequestHeaders[HeadersP])(implicit tuplerAC: Tupler[UrlP, HeadersP]): Request[Out]

    Permalink
    Definition Classes
    Requests
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. def header(name: String, docs: Documentation): (String, WSRequest) ⇒ WSRequest

    Permalink
    Definition Classes
    Endpoints → Requests
  27. implicit lazy val intQueryString: QueryStringParam[Int]

    Permalink
    Definition Classes
    Urls → Urls
  28. implicit lazy val intSegment: Segment[Int]

    Permalink
    Definition Classes
    Urls → Urls
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. implicit lazy val longQueryString: QueryStringParam[Long]

    Permalink
    Definition Classes
    Urls → Urls
  31. implicit lazy val longSegment: Segment[Long]

    Permalink
    Definition Classes
    Urls → Urls
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. def optHeader(name: String, docs: Documentation): (Option[String], WSRequest) ⇒ WSRequest

    Permalink
    Definition Classes
    Endpoints → Requests
  36. def optQs[A](name: String, docs: Documentation)(implicit value: (A) ⇒ String): QueryString[Option[A]]

    Permalink
    Definition Classes
    Urls → Urls
  37. def option[A](response: Response[A], notFoundDocs: Documentation): Response[Option[A]]

    Permalink
    Definition Classes
    Endpoints → Responses
  38. val path: Path[Unit]

    Permalink
    Definition Classes
    Urls
  39. final def post[UrlP, BodyP, HeadersP, UrlAndBodyPTupled](url: Url[UrlP], entity: RequestEntity[BodyP], headers: RequestHeaders[HeadersP])(implicit tuplerAB: Tupler.Aux[UrlP, BodyP, UrlAndBodyPTupled], tuplerABC: Tupler[UrlAndBodyPTupled, HeadersP]): Request[Out]

    Permalink
    Definition Classes
    Requests
  40. def qs[A](name: String, docs: Documentation)(implicit value: QueryStringParam[A]): QueryString[A]

    Permalink
    Definition Classes
    Urls → Urls
  41. implicit lazy val reqEntityInvFunctor: InvariantFunctor[RequestEntity]

    Permalink
    Definition Classes
    Endpoints → Requests
  42. implicit lazy val reqHeadersInvFunctor: InvariantFunctor[RequestHeaders]

    Permalink
    Definition Classes
    Endpoints → Requests
  43. implicit lazy val reqHeadersSemigroupal: Semigroupal[RequestHeaders]

    Permalink
    Definition Classes
    Endpoints → Requests
  44. def request[A, B, C, AB](method: Method, url: Url[A], entity: RequestEntity[B], headers: RequestHeaders[C])(implicit tuplerAB: Tupler.Aux[A, B, AB], tuplerABC: Tupler[AB, C]): Request[Out]

    Permalink
    Definition Classes
    Endpoints → Requests
  45. def segment[A](name: String, docs: Documentation)(implicit s: Segment[A]): Path[A]

    Permalink
    Definition Classes
    Urls → Urls
  46. def staticPathSegment(segment: String): Path[Unit] with Serializable

    Permalink
    Definition Classes
    Urls → Urls
  47. implicit lazy val stringQueryString: QueryStringParam[String]

    Permalink
    Definition Classes
    Urls → Urls
  48. implicit lazy val stringSegment: Segment[String]

    Permalink
    Definition Classes
    Urls → Urls
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  50. def textRequest(docs: Documentation): (String, WSRequest) ⇒ WSRequest

    Permalink
    Definition Classes
    Endpoints → Requests
  51. def textResponse(docs: Documentation): Response[String]

    Permalink

    Successfully decodes string information from a response

    Successfully decodes string information from a response

    Definition Classes
    Endpoints → Responses
  52. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  53. implicit lazy val urlInvFunctor: InvariantFunctor[Url]

    Permalink
    Definition Classes
    Urls → Urls
  54. def urlWithQueryString[A, B](path: Path[A], qs: QueryString[B])(implicit tupler: Tupler[A, B]): Url[Out]

    Permalink
    Definition Classes
    Urls → Urls
  55. val utf8Name: String

    Permalink
    Definition Classes
    Urls
  56. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Methods

Inherited from Urls

Inherited from algebra.Endpoints

Inherited from Responses

Inherited from Requests

Inherited from algebra.Methods

Inherited from algebra.Urls

Inherited from AnyRef

Inherited from Any

Ungrouped