Skip to content

Commit

Permalink
doc: security or documentation (#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehp authored Mar 10, 2022
1 parent 7dc2340 commit add313f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions testdata/simple/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func GetStringByInt(w http.ResponseWriter, r *http.Request) {
// @Security OAuth2Implicit[read, admin]
// @Security OAuth2AccessCode[read]
// @Security OAuth2Password[admin]
// @Security OAuth2Implicit[read, write] || Firebase
// @Router /testapi/get-struct-array-by-string/{some_id} [get]
func GetStructArrayByString(w http.ResponseWriter, r *http.Request) {
//write your code
Expand Down
7 changes: 7 additions & 0 deletions testdata/simple/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,13 @@
"OAuth2Password": [
"admin"
]
},
{
"Firebase": [],
"OAuth2Implicit": [
"read",
"write"
]
}
],
"description": "get struct array by ID",
Expand Down

0 comments on commit add313f

Please sign in to comment.