endpoints4s.play.server
Server interpreters backed by Play framework
Attributes
Members list
Type members
Classlikes
Interpreter for algebra.Assets that performs routing using Play framework
Interpreter for algebra.Assets that performs routing using Play framework
Attributes
- Supertypes
-
trait StatusCodestrait Methodstrait Urlstrait Assetstrait EndpointsWithCustomErrorstrait Errorstrait Responsestrait StatusCodestrait Requeststrait SemigroupalSyntaxtrait Methodstrait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait StatusCodestrait Methodstrait Urlstrait BasicAuthenticationtrait EndpointsWithCustomErrorstrait Errorstrait Responsestrait StatusCodestrait Requeststrait SemigroupalSyntaxtrait Methodstrait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait BuiltInErrorstrait Errorsclass Objecttrait Matchableclass Any
- Known subtypes
-
trait Endpointstrait LowLevelEndpoints
- Self type
Interpreter for the algebra.ChunkedEntities algebra in the endpoints4s.play.server family.
Interpreter for the algebra.ChunkedEntities algebra in the endpoints4s.play.server family.
Attributes
- Supertypes
-
trait ChunkedEntitiestrait ChunkedResponseEntitiestrait ChunkedRequestEntitiestrait Chunkstrait StatusCodestrait Methodstrait Urlstrait EndpointsWithCustomErrorstrait Errorstrait Responsestrait StatusCodestrait Requeststrait SemigroupalSyntaxtrait Methodstrait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ChunkedJsonEntities
Interpreter for the algebra.ChunkedJsonEntities algebra in the endpoints4s.play.server family.
Interpreter for the algebra.ChunkedJsonEntities algebra in the endpoints4s.play.server family.
Attributes
- Supertypes
-
trait JsonEntitiesFromCodecstrait JsonEntitiesFromCodecstrait ChunkedJsonEntitiestrait ChunkedJsonResponseEntitiestrait ChunkedJsonRequestEntitiestrait Framingtrait JsonCodecstrait JsonEntitiestrait ChunkedEntitiestrait ChunkedEntitiestrait ChunkedResponseEntitiestrait ChunkedRequestEntitiestrait Chunkstrait StatusCodestrait Methodstrait Urlstrait EndpointsWithCustomErrorstrait Errorstrait Responsestrait StatusCodestrait Requeststrait SemigroupalSyntaxtrait Methodstrait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
Interpreter for algebra.Endpoints that performs routing using Play framework, and uses algebra.BuiltInErrors to model client and server errors.
Interpreter for algebra.Endpoints that performs routing using Play framework, and uses algebra.BuiltInErrors to model client and server errors.
Consider the following endpoints definition:
trait MyEndpoints extends algebra.Endpoints with algebra.JsonEntities {
val inc = endpoint(get(path / "inc" ? qs[Int]("x")), jsonResponse[Int])
}
You can get a router for them as follows:
object MyRouter extends MyEndpoints with play.server.Endpoints with play.server.JsonEntities {
val routes = routesFromEndpoints(
inc.implementedBy(x => x + 1)
)
}
Then MyRouter.routes
can be used to define a proper Play router as follows:
val router = play.api.routing.Router.from(MyRouter.routes)
Attributes
- Supertypes
-
trait BuiltInErrorstrait StatusCodestrait Methodstrait Urlstrait Endpointstrait BuiltInErrorstrait EndpointsWithCustomErrorstrait Errorstrait Responsestrait StatusCodestrait Requeststrait SemigroupalSyntaxtrait Methodstrait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait LowLevelEndpoints
Interpreter for algebra.Endpoints that performs routing using Play framework.
Interpreter for algebra.Endpoints that performs routing using Play framework.
Attributes
- Supertypes
-
trait StatusCodestrait Methodstrait Urlstrait EndpointsWithCustomErrorstrait Errorstrait Responsestrait StatusCodestrait Requeststrait SemigroupalSyntaxtrait Methodstrait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Assetstrait BasicAuthenticationtrait ChunkedEntitiestrait ChunkedJsonEntitiestrait Endpointstrait LowLevelEndpointstrait JsonEntitiesFromCodecstrait JsonEntitiesFromSchemastrait MuxEndpointsShow all
Interpreter for algebra.JsonEntitiesFromCodecs that decodes JSON requests and encodes JSON responses.
Interpreter for algebra.JsonEntitiesFromCodecs that decodes JSON requests and encodes JSON responses.
Attributes
- Supertypes
-
trait StatusCodestrait Methodstrait Urlstrait JsonEntitiesFromCodecstrait JsonCodecstrait JsonEntitiestrait EndpointsWithCustomErrorstrait Errorstrait Responsestrait StatusCodestrait Requeststrait SemigroupalSyntaxtrait Methodstrait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ChunkedJsonEntitiestrait JsonEntitiesFromSchemas
Interpreter for algebra.JsonEntities that decodes JSON entities with a endpoints4s.Decoder and encodes JSON entities with an endpoints4s.Encoder.
Interpreter for algebra.JsonEntities that decodes JSON entities with a endpoints4s.Decoder and encodes JSON entities with an endpoints4s.Encoder.
The difference with JsonEntitiesFromCodecs is that you don’t need bidirectional codecs: you only need an encoder to build responses, or a decoder to decode requests.
It is especially useful to encode OpenApi
documents into JSON entities.
Attributes
- Supertypes
-
trait StatusCodestrait Methodstrait Urlstrait JsonEntitiestrait EndpointsWithCustomErrorstrait Errorstrait Responsestrait StatusCodestrait Requeststrait SemigroupalSyntaxtrait Methodstrait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
Interpreter for algebra.JsonEntitiesFromSchemas that decodes JSON requests and encodes JSON responses.
Interpreter for algebra.JsonEntitiesFromSchemas that decodes JSON requests and encodes JSON responses.
Attributes
- Supertypes
-
trait JsonSchemastrait TuplesSchemastrait NoDocsJsonSchemastrait JsonEntitiesFromCodecstrait StatusCodestrait Methodstrait Urlstrait JsonEntitiesFromCodecstrait JsonEntitiesFromSchemastrait JsonSchemastrait TuplesSchemastrait JsonCodecstrait JsonEntitiestrait EndpointsWithCustomErrorstrait Errorstrait Responsestrait StatusCodestrait Requeststrait SemigroupalSyntaxtrait Methodstrait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Endpointstrait BuiltInErrorstrait StatusCodestrait Methodstrait Urlstrait Endpointstrait BuiltInErrorstrait LowLevelEndpointstrait EndpointsWithCustomErrorstrait Errorstrait Responsestrait StatusCodestrait Requeststrait SemigroupalSyntaxtrait Methodstrait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
algebra.Methods interpreter that decodes and encodes methods.
algebra.Methods interpreter that decodes and encodes methods.
Attributes
- Supertypes
-
trait Methodsclass Objecttrait Matchableclass Any
- Known subtypes
-
trait Assetstrait BasicAuthenticationtrait ChunkedEntitiestrait ChunkedJsonEntitiestrait Endpointstrait LowLevelEndpointstrait JsonEntitiesFromCodecstrait JsonEntitiesFromSchemastrait MuxEndpointsShow all
Attributes
- Supertypes
-
trait StatusCodestrait Methodstrait Urlstrait MuxEndpointstrait EndpointsWithCustomErrorstrait Errorstrait Responsestrait StatusCodestrait Requeststrait SemigroupalSyntaxtrait Methodstrait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
A function whose return type depends on the type of the given req
.
A function whose return type depends on the type of the given req
.
Type parameters
- Req
-
Request base type
- Resp
-
Response base type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
A function whose return type depends on the type of the given req
.
A function whose return type depends on the type of the given req
.
Type parameters
- Req
-
Request base type
- Resp
-
Response base type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Play components needed by the interpreter
Play components needed by the interpreter
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PlayComponents.type
Attributes
- Supertypes
-
trait StatusCodesclass Objecttrait Matchableclass Any
- Known subtypes
-
trait Assetstrait BasicAuthenticationtrait ChunkedEntitiestrait ChunkedJsonEntitiestrait Endpointstrait LowLevelEndpointstrait JsonEntitiesFromCodecstrait JsonEntitiesFromSchemastrait MuxEndpointsShow all
algebra.Urls interpreter that decodes and encodes URLs.
algebra.Urls interpreter that decodes and encodes URLs.
Attributes
- Supertypes
-
trait Urlstrait PartialInvariantFunctorSyntaxtrait InvariantFunctorSyntaxclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Assetstrait BasicAuthenticationtrait ChunkedEntitiestrait ChunkedJsonEntitiestrait Endpointstrait LowLevelEndpointstrait JsonEntitiesFromCodecstrait JsonEntitiesFromSchemastrait MuxEndpointsShow all
- Self type