private static void RegisterSwashBuckle(HttpConfiguration config) { config .EnableSwagger(c => { c.SingleApiVersion("3.0", "Roadkill Web API"); var applyApiKeySecurity = new SwashbuckleApplyApiKeySecurity( key: ApiKeyAuthorizeAttribute.APIKEY_HEADER_KEY, name: ApiKeyAuthorizeAttribute.APIKEY_HEADER_KEY, description: "API key", @in: "header" ); applyApiKeySecurity.Apply(c); }) .EnableSwaggerUi(); }
private static void RegisterSwashBuckle(HttpConfiguration config) { config .EnableSwagger(c => { c.SingleApiVersion("3.0", "Roadkill Web API"); var applyApiKeySecurity = new SwashbuckleApplyApiKeySecurity( key: ApiKeyAuthorizeAttribute.APIKEY_HEADER_KEY, name: ApiKeyAuthorizeAttribute.APIKEY_HEADER_KEY, description: "API key", @in: "header" ); applyApiKeySecurity.Apply(c); }) .EnableSwaggerUi(); }