Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit dabb2ab

Browse files
committed
added basic authentication to V2 API
1 parent 2e5d9c8 commit dabb2ab

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

doc.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
// Produces:
2525
// - application/json
2626
//
27+
// Security:
28+
// - basicAuth: []
29+
//
30+
// SecurityDefinitions:
31+
// - basicAuth:
32+
// type: basic
33+
// description: HTTP basic authentication.
2734
//
2835
// swagger:meta
2936
package main

swagger.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,5 +1286,18 @@
12861286
}
12871287
}
12881288
}
1289-
}
1289+
},
1290+
"securityDefinitions": {
1291+
"basicAuth": {
1292+
"description": "HTTP basic authentication.",
1293+
"type": "basic"
1294+
}
1295+
},
1296+
"security": [
1297+
{
1298+
"basicAuth": [
1299+
"[]"
1300+
]
1301+
}
1302+
]
12901303
}

0 commit comments

Comments
 (0)