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

Method addSecurity

lib/document-builder.ts:159–165  ·  view source on GitHub ↗
(name: string, options: SecuritySchemeObject)

Source from the content-addressed store, hash-verified

157 }
158
159 public addSecurity(name: string, options: SecuritySchemeObject): this {
160 this.document.components.securitySchemes = {
161 ...(this.document.components.securitySchemes || {}),
162 [name]: options
163 };
164 return this;
165 }
166
167 public addGlobalResponse(...respones: ApiResponseOptions[]): this {
168 const groupedByStatus = respones.reduce(

Callers 5

addBearerAuthMethod · 0.95
addOAuth2Method · 0.95
addApiKeyMethod · 0.95
addBasicAuthMethod · 0.95
addCookieAuthMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected