RestEndpoint
A RestEndpoint implementation defines the API contract for a single REST API endpoint. Implementations must be Kotlin data classes or data objects. See this Feature's README or tests for some examples.
I (input) represents the type of the request body. If none, use Unit. O (output) represents the type of the response body. If none, use Unit.
Types
Properties
Link copied to clipboard
Override in data class endpoints that accept a request body. Throws NotImplementedError by default, which is expected for endpoints without a body.