API

@Serializable
@SerialName(value = "API")
abstract class API<Request : JsonEncodable, Response : WebResponse<Result>, Result, Success : Result, Failure : Result>

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun generateFailure(reason: String): Failure
Link copied to clipboard
abstract fun generateResponse(result: Result, code: Int): Response
Link copied to clipboard
abstract fun getMethod(): HttpMethod
Link copied to clipboard
abstract fun getPath(): String
Link copied to clipboard
abstract fun getPort(): Int
Link copied to clipboard
Link copied to clipboard
abstract fun parseRequest(json: String): Request
Link copied to clipboard
abstract fun parseResponse(json: String): Response