ApiKeySecurityScheme
data class ApiKeySecurityScheme(val name: String? = null, val in: SecuritySchemeIn? = null, val description: String? = null, val extensions: ExtensionProperties? = null) : SecurityScheme, Extensible(source)
Describes an API Key-based security scheme for OpenAPI 3.0+ specifications.
The API Key security scheme is used to authenticate requests using a single static API key that can be passed in a header, query parameter, or cookie.
See also
for available locations
Constructors
Link copied to clipboard
constructor(name: String? = null, in: SecuritySchemeIn? = null, description: String? = null, extensions: ExtensionProperties? = null)
Properties
Link copied to clipboard
A short description for this security scheme.
Link copied to clipboard
Specification-extensions for this security scheme (keys must start with x-).
Link copied to clipboard
The location where the API key is passed (query, header, or cookie).
Link copied to clipboard
The type of the security scheme (SecuritySchemeType.API_KEY).