Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
EndpointOutput.type
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Atom[T]trait Basic[T]trait Basic[T]trait Single[T]trait EndpointOutput[T]trait EndpointTransput[T]trait EndpointTransputMacros[T]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Atom[I]class Empty[T]class FixedHeader[T]class Header[T]class Headers[T]class FixedStatusCode[T]class StatusCode[T]Show all
Attributes
- Supertypes
-
trait Basic[T]trait Single[T]trait EndpointOutput[T]trait EndpointTransput[T]trait EndpointTransputMacros[T]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Basic[I]trait Atom[I]class Empty[T]class FixedHeader[T]class Header[T]class Headers[T]trait Atom[T]class FixedStatusCode[T]class StatusCode[T]Show all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Atom[T]trait Atom[T]trait Basic[T]trait Basic[T]trait Single[T]trait EndpointOutput[T]trait EndpointTransput[T]trait EndpointTransputMacros[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Single[V]trait EndpointOutput[V]trait EndpointTransput[V]trait EndpointTransputMacros[V]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Single[T]trait EndpointOutput[T]trait EndpointTransput[T]trait EndpointTransputMacros[T]class Objecttrait Matchableclass AnyShow all
Specifies one possible output
.
Specifies one possible output
.
When encoding to a response, this output is used if:
appliesTo
applied to the output value (as returned by the server logic) returnstrue
.- when a fixed content type specified by the output matches the request's
Accept
header
When decoding from a response, this output is used if it decodes successfully.
The appliesTo
function should determine, whether a runtime value matches the type O
. This check cannot be in general done by checking the run-time class of the value, due to type erasure (if O
has type parameters).
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Pair[TU]trait EndpointOutput[TU]trait EndpointTransput[TU]trait EndpointTransputMacros[TU]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait EndpointOutput[T]trait EndpointTransput[T]trait EndpointTransputMacros[T]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait Single[I]trait Basic[I]trait Atom[I]class Empty[T]class FixedHeader[T]class Header[T]class Headers[T]trait Basic[T]trait Atom[T]class FixedStatusCode[T]class StatusCode[T]Show all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Atom[T]trait Atom[T]trait Basic[T]trait Basic[T]trait Single[T]trait EndpointOutput[T]trait EndpointTransput[T]trait EndpointTransputMacros[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait EndpointOutput[T]trait EndpointTransput[T]trait EndpointTransputMacros[T]class Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Atom[T]trait Atom[T]trait Basic[T]trait Basic[T]trait Single[T]trait EndpointOutput[T]trait EndpointTransput[T]trait EndpointTransputMacros[T]class Objecttrait Matchableclass AnyShow all
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Inherited methods
Derives an output description using metadata specified with annotations on the given case class. Each field of the case class must be annotated with one of the annotations from sttp.tapir.EndpointIO.annotations. Additional schema meta-data can be specified using annotations from sttp.tapir.Schema.annotations. The result is mapped to an instance of the T type.
Derives an output description using metadata specified with annotations on the given case class. Each field of the case class must be annotated with one of the annotations from sttp.tapir.EndpointIO.annotations. Additional schema meta-data can be specified using annotations from sttp.tapir.Schema.annotations. The result is mapped to an instance of the T type.
Attributes
- Inherited from:
- EndpointOutputMacros