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

Commit

Permalink
added basic authentication to V2 API
Browse files Browse the repository at this point in the history
  • Loading branch information
candysmurf committed Jun 6, 2017
1 parent 2e5d9c8 commit dabb2ab
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
7 changes: 7 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
// Produces:
// - application/json
//
// Security:
// - basicAuth: []
//
// SecurityDefinitions:
// - basicAuth:
// type: basic
// description: HTTP basic authentication.
//
// swagger:meta
package main
15 changes: 14 additions & 1 deletion swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1286,5 +1286,18 @@
}
}
}
}
},
"securityDefinitions": {
"basicAuth": {
"description": "HTTP basic authentication.",
"type": "basic"
}
},
"security": [
{
"basicAuth": [
"[]"
]
}
]
}

0 comments on commit dabb2ab

Please sign in to comment.