diff --git a/doc.go b/doc.go index deec855b2..0071b05c3 100644 --- a/doc.go +++ b/doc.go @@ -24,6 +24,13 @@ // Produces: // - application/json // +// Security: +// - basicAuth: [] +// +// SecurityDefinitions: +// - basicAuth: +// type: basic +// description: HTTP basic authentication. // // swagger:meta package main diff --git a/swagger.json b/swagger.json index 3b5e4b497..a4791c7b0 100644 --- a/swagger.json +++ b/swagger.json @@ -1286,5 +1286,18 @@ } } } - } + }, + "securityDefinitions": { + "basicAuth": { + "description": "HTTP basic authentication.", + "type": "basic" + } + }, + "security": [ + { + "basicAuth": [ + "[]" + ] + } + ] } \ No newline at end of file