Package

tapir

Permalink

package tapir

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. tapir
  2. Tapir
  3. TapirDerivedInputs
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type AnyCodec = Codec[_, _ <: MediaType, _]

    Permalink
  2. type AnyCodecForMany = CodecForMany[_, _ <: MediaType, _]

    Permalink
  3. type AnyCodecMeta = CodecMeta[_ <: MediaType, _]

    Permalink
  4. type AnyPart = Part[_]

    Permalink
  5. trait Codec[T, M <: MediaType, R] extends Decode[R, T]

    Permalink

    A pair of functions, one to encode a value of type T to a raw value of type R, and another one to decode.

    A pair of functions, one to encode a value of type T to a raw value of type R, and another one to decode.

    Also contains meta-data on the schema of the value, the media type and the raw value type.

    T

    Type of the values which can be encoded / to which raw values can be decoded.

    M

    The media type of encoded values.

    R

    Type of the raw value to which values are encoded.

    Annotations
    @implicitNotFound( ... )
  6. trait CodecForMany[T, M <: MediaType, R] extends Decode[Seq[R], T]

    Permalink

    A codec which can encode to multiple (0..n) raw values / decode from multiple raw values.

    A codec which can encode to multiple (0..n) raw values / decode from multiple raw values. An multiple raw value specifies that the raw values should be included in the output multiple times. Depending on the codec, decoding from a multiple value might yield DecodeResult.Missing or DecodeResult.Multiple.

    Should be used for inputs/outputs which allow multiple values.

    Annotations
    @implicitNotFound( ... )
  7. trait CodecForOptional[T, M <: MediaType, R] extends Decode[Option[R], T]

    Permalink

    A codec which can encode to optional raw values / decode from optional raw values.

    A codec which can encode to optional raw values / decode from optional raw values. An optional raw value specifies if the raw value should be included in the output, or not. Depending on the codec, decoding from an optional value might yield DecodeResult.Missing.

    Should be used for inputs/outputs which allow optional values.

    Annotations
    @implicitNotFound( ... )
  8. case class CodecMeta[M <: MediaType, R] extends Product with Serializable

    Permalink
  9. trait Decode[F, T] extends AnyRef

    Permalink
  10. sealed trait DecodeFailure extends DecodeResult[Nothing]

    Permalink
  11. sealed trait DecodeResult[+T] extends AnyRef

    Permalink
  12. case class Endpoint[I, E, O, +S](input: EndpointInput[I], errorOutput: EndpointOutput[E], output: EndpointOutput[O], info: EndpointInfo) extends Product with Serializable

    Permalink

    I

    Input parameter types.

    E

    Error output parameter types.

    O

    Output parameter types.

    S

    The type of streams that are used by this endpoint's inputs/outputs. Nothing, if no streams are used.

  13. sealed trait EndpointIO[I] extends EndpointInput[I] with EndpointOutput[I]

    Permalink
  14. case class EndpointInfo(name: Option[String], summary: Option[String], description: Option[String], tags: Vector[String]) extends Product with Serializable

    Permalink
  15. sealed trait EndpointInput[I] extends AnyRef

    Permalink
  16. sealed trait EndpointOutput[I] extends AnyRef

    Permalink
  17. trait MediaType extends AnyRef

    Permalink
  18. case class MultipartValueType(partCodecMetas: Map[String, AnyCodecMeta], defaultCodecMeta: Option[AnyCodecMeta]) extends RawValueType[Seq[RawPart]] with Product with Serializable

    Permalink
  19. type RawPart = Part[_]

    Permalink
  20. sealed trait RawValueType[R] extends AnyRef

    Permalink
  21. sealed trait Schema extends AnyRef

    Permalink
  22. trait SchemaFor[T] extends AnyRef

    Permalink
  23. sealed trait StreamingEndpointIO[I, +S] extends AnyRef

    Permalink
  24. case class StringValueType(charset: Charset) extends RawValueType[String] with Product with Serializable

    Permalink
  25. trait Tapir extends TapirDerivedInputs

    Permalink
  26. trait TapirAliases extends AnyRef

    Permalink

    Mixin containing aliases for top-level types and modules in the tapir package.

  27. trait TapirDerivedInputs extends AnyRef

    Permalink

Value Members

  1. object ByteArrayValueType extends RawValueType[Array[Byte]] with Product with Serializable

    Permalink
  2. object ByteBufferValueType extends RawValueType[ByteBuffer] with Product with Serializable

    Permalink
  3. object Codec extends MultipartCodecDerivation with FormCodecDerivation

    Permalink
  4. object CodecForMany

    Permalink
  5. object CodecForOptional

    Permalink
  6. object CodecMeta extends Serializable

    Permalink
  7. object DecodeResult

    Permalink
  8. object Defaults

    Permalink
  9. object EndpointIO

    Permalink
  10. object EndpointInput

    Permalink
  11. object EndpointOutput

    Permalink
  12. object FileValueType extends RawValueType[File] with Product with Serializable

    Permalink
  13. object InputStreamValueType extends RawValueType[InputStream] with Product with Serializable

    Permalink
  14. object MediaType

    Permalink
  15. object RenderPathTemplate

    Permalink
  16. object Schema

    Permalink
  17. object SchemaFor extends SchemaForMagnoliaDerivation

    Permalink
  18. object StreamingEndpointIO

    Permalink
  19. object TapirAuth

    Permalink
  20. def auth: TapirAuth.type

    Permalink
    Definition Classes
    Tapir
  21. def binaryBody[T](implicit codec: CodecForOptional[T, OctetStream, _]): Body[T, OctetStream, _]

    Permalink
    Definition Classes
    Tapir
  22. def body[T, M <: MediaType](implicit tm: CodecForOptional[T, M, _]): Body[T, M, _]

    Permalink
    Definition Classes
    Tapir
  23. def clientIp: EndpointInput[Option[String]]

    Permalink
    Definition Classes
    TapirDerivedInputs
  24. def cookie[T](name: String)(implicit arg0: PlainCodecForOptional[T]): Cookie[T]

    Permalink
    Definition Classes
    Tapir
  25. def cookies: Header[List[Cookie]]

    Permalink
    Definition Classes
    Tapir
  26. def emptyOutput: EndpointOutput[Unit]

    Permalink

    An empty output.

    An empty output. Useful if one of oneOf branches should be mapped to the status code only.

    Definition Classes
    Tapir
  27. val endpoint: Endpoint[Unit, Unit, Unit, Nothing]

    Permalink
    Definition Classes
    Tapir
  28. def extractFromRequest[T](f: (ServerRequest) ⇒ T): ExtractFromRequest[T]

    Permalink

    Extract a value from a server request.

    Extract a value from a server request. This input is only used by server interpreters, it is ignored by documentation interpreters and the provided value is discarded by client interpreters.

    Definition Classes
    Tapir
  29. def formBody[T](implicit codec: CodecForOptional[T, XWwwFormUrlencoded, _]): Body[T, XWwwFormUrlencoded, _]

    Permalink
    Definition Classes
    Tapir
  30. package generic

    Permalink
  31. def header[T](name: String)(implicit arg0: PlainCodecForMany[T]): Header[T]

    Permalink
    Definition Classes
    Tapir
  32. def headers: Headers

    Permalink
    Definition Classes
    Tapir
  33. val htmlBodyUtf8: Body[String, TextHtml, String]

    Permalink
    Definition Classes
    Tapir
  34. package internal

    Permalink
  35. def jsonBody[T](implicit codec: CodecForOptional[T, Json, _]): Body[T, Json, _]

    Permalink
    Definition Classes
    Tapir
  36. package model

    Permalink
  37. def multipartBody[T](implicit codec: CodecForOptional[T, MultipartFormData, _]): Body[T, MultipartFormData, _]

    Permalink
    Definition Classes
    Tapir
  38. def oneOf[I](firstCase: StatusMapping[_ <: I], otherCases: StatusMapping[_ <: I]*): OneOf[I]

    Permalink

    Maps status codes to outputs.

    Maps status codes to outputs. All outputs must have a common supertype (I). Typically, the supertype is a sealed trait, and the mappings are implementing cases classes.

    Note that exhaustiveness of the mappings is not checked (that all subtypes of I are covered).

    Definition Classes
    Tapir
  39. def path[T](name: String)(implicit arg0: PlainCodec[T]): PathCapture[T]

    Permalink
    Definition Classes
    Tapir
  40. def path[T](implicit arg0: PlainCodec[T]): PathCapture[T]

    Permalink
    Definition Classes
    Tapir
  41. def paths: PathsCapture

    Permalink
    Definition Classes
    Tapir
  42. def plainBody[T](implicit codec: CodecForOptional[T, TextPlain, _]): Body[T, TextPlain, _]

    Permalink
    Definition Classes
    Tapir
  43. def query[T](name: String)(implicit arg0: PlainCodecForMany[T]): Query[T]

    Permalink
    Definition Classes
    Tapir
  44. def queryParams: QueryParams

    Permalink
    Definition Classes
    Tapir
  45. def schemaFor[T](implicit arg0: SchemaFor[T]): Schema

    Permalink
    Definition Classes
    Tapir
  46. package server

    Permalink
  47. def setCookie(name: String): Header[SetCookieValue]

    Permalink
    Definition Classes
    Tapir
  48. def setCookies: Header[List[SetCookie]]

    Permalink
    Definition Classes
    Tapir
  49. def statusCode(statusCode: StatusCode): FixedStatusCode

    Permalink
    Definition Classes
    Tapir
  50. def statusCode: StatusCode

    Permalink
    Definition Classes
    Tapir
  51. def statusDefaultMapping[O](output: EndpointOutput[O])(implicit arg0: ClassTag[O]): StatusMapping[O]

    Permalink
    Definition Classes
    Tapir
  52. def statusMapping[O](statusCode: StatusCode, output: EndpointOutput[O])(implicit arg0: ClassTag[O]): StatusMapping[O]

    Permalink
    Definition Classes
    Tapir
  53. def streamBody[S](schema: Schema, mediaType: MediaType): Body[S, mediaType.type]

    Permalink
    Definition Classes
    Tapir
  54. def stringBody(charset: Charset): Body[String, TextPlain, String]

    Permalink
    Definition Classes
    Tapir
  55. def stringBody(charset: String): Body[String, TextPlain, String]

    Permalink
    Definition Classes
    Tapir
  56. def stringBody: Body[String, TextPlain, String]

    Permalink
    Definition Classes
    Tapir
  57. implicit def stringToPath(s: String): EndpointInput[Unit]

    Permalink
    Definition Classes
    Tapir
  58. package typelevel

    Permalink

Inherited from Tapir

Inherited from TapirDerivedInputs

Inherited from AnyRef

Inherited from Any

Ungrouped