ApiKey

data class ApiKey(val name: String, val location: AuthScheme.ApiKey.Location, val description: String? = null) : AuthScheme

An API key scheme: where the key is sent, and under which name.

Constructors

Link copied to clipboard
constructor(name: String, location: AuthScheme.ApiKey.Location, description: String? = null)

Types

Link copied to clipboard
class Builder

Fluent builder for ApiKey, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard

A description of the scheme.

Link copied to clipboard

Where the key is sent: OpenAPI's in.

Link copied to clipboard

The name of the header, query parameter or cookie that carries the key.

Link copied to clipboard
open override val type: String

The scheme's OpenAPI type, such as apiKey or http.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.