MCPcopy
hub / github.com/nestjs/swagger / addApiKey

Method addApiKey

lib/document-builder.ts:236–249  ·  view source on GitHub ↗
(
    options: SecuritySchemeObject = {
      type: 'apiKey'
    },
    name = 'api_key'
  )

Source from the content-addressed store, hash-verified

234 }
235
236 public addApiKey(
237 options: SecuritySchemeObject = {
238 type: 'apiKey'
239 },
240 name = 'api_key'
241 ): this {
242 this.addSecurity(name, {
243 type: 'apiKey',
244 in: 'header',
245 name,
246 ...options
247 });
248 return this;
249 }
250
251 public addBasicAuth(
252 options: SecuritySchemeObject = {

Callers 4

bootstrapFunction · 0.80

Calls 1

addSecurityMethod · 0.95

Tested by

no test coverage detected