Request

class Request(id: String, apiSpecId: String, endpointId: String, parameters: Map<String, String>, body: ByteArray)

Defines the data model for a request sent by a lens.

Parameters

id

Unique id of the request.

apiSpecId

Unique id of the remote API service specification.

endpointId

Unique id of the remote API service endpoint requested by this request.

parameters

A map of named parameters associated with the request.

body

Additional request payload as a ByteArray.

Constructors

Request
Link copied to clipboard
fun Request(id: String, apiSpecId: String, endpointId: String, parameters: Map<String, String>, body: ByteArray)
Unique id of the request.

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

apiSpecId
Link copied to clipboard
val apiSpecId: String
Unique id of the remote API service specification.
body
Link copied to clipboard
val body: ByteArray
Additional request payload as a ByteArray.
endpointId
Link copied to clipboard
val endpointId: String
Unique id of the remote API service endpoint requested by this request.
id
Link copied to clipboard
val id: String
Unique id of the request.
parameters
Link copied to clipboard
val parameters: Map<String, String>
A map of named parameters associated with the request.