UNPKG

@apvee/azure-functions-openapi

Version:

An extension for Azure Functions V4 that provides support for exporting OpenAPI spec files from annotated Azure Functions.

10 lines (9 loc) 464 B
import { SecurityRequirementObject } from "./types"; /** * Registers an API key security schema. * * @param {string} name - The name of the API key (e.g., 'X-API-KEY'). * @param {'header' | 'query' | 'cookie'} input - The location of the API key in the request. * @returns {Object} The registered API key security schema. */ export declare function registerApiKeySecuritySchema(name: string, input: 'header' | 'query' | 'cookie'): SecurityRequirementObject;