mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-28 11:45:15 +00:00
parent
bf8f111f53
commit
0376c09fc2
@ -23,9 +23,11 @@ type AccessToken struct {
|
||||
type AccessTokenList []*AccessToken
|
||||
|
||||
// CreateAccessTokenOption options when create access token
|
||||
// swagger:model CreateAccessTokenOption
|
||||
type CreateAccessTokenOption struct {
|
||||
// required: true
|
||||
Name string `json:"name" binding:"Required"`
|
||||
// example: ["all", "read:activitypub","read:issue", "write:misc", "read:notification", "read:organization", "read:package", "read:repository", "read:user"]
|
||||
Scopes []string `json:"scopes"`
|
||||
}
|
||||
|
||||
|
13
templates/swagger/v1_json.tmpl
generated
13
templates/swagger/v1_json.tmpl
generated
@ -21350,7 +21350,18 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-go-name": "Scopes"
|
||||
"x-go-name": "Scopes",
|
||||
"example": [
|
||||
"all",
|
||||
"read:activitypub",
|
||||
"read:issue",
|
||||
"write:misc",
|
||||
"read:notification",
|
||||
"read:organization",
|
||||
"read:package",
|
||||
"read:repository",
|
||||
"read:user"
|
||||
]
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
|
Loading…
Reference in New Issue
Block a user