ClientService

interface ClientService

Service for making requests to the middleware server.

Functions

Link copied to clipboard
abstract suspend fun request(route: OriginalRoute, preConfiguredQueries: Map<String, String>, preConfiguredHeaders: Map<String, String>, preConfiguredBody: JsonObject?): OriginalResponse

Makes a request to the middleware server.

Link copied to clipboard
abstract suspend fun validateApi(api: OriginalApi): ApiValidationResponse

Validates an API by making a request to the base URL.

Link copied to clipboard
abstract suspend fun validateUser(secret: String, audience: String, issuer: String, userId: String, email: String, expiration: Long): Boolean

Validates a user by making a request to the user service.