HttpEndpoint

data class HttpEndpoint<out P : Parameters, out I : Input<*, *>, out O : Outputs>(source)

Immutable endpoint contract produced by the DSL.

This is the value Tapik generators and interpreters consume once the staged builders have collected the method, URI template, request shape, and possible responses into one object.

Parameters

P

typed tuple of path and query parameters referenced by the endpoint.

I

request contract covering headers and body.

O

response variants paired with status matchers.

Properties

Link copied to clipboard

short summary surfaced in generated documentation.

Link copied to clipboard

optional longer notes such as usage rules or caveats.

Link copied to clipboard
val id: String

stable endpoint identifier, usually derived from the declaring property name.

Link copied to clipboard
val input: I

request headers and body expected by the endpoint.

Link copied to clipboard

HTTP method handled by the endpoint.

Link copied to clipboard
val outputs: O

response variants the endpoint may produce.

Link copied to clipboard

typed parameter tuple captured while building the URI template.

Link copied to clipboard

literal URI segments, with path variables represented separately in parameters.