@ -11917,18 +11917,10 @@
"required": true
"required": true
},
},
{
{
"name": "access Token",
"name": "userCreate Token",
"in": "body",
"in": "body",
"schema": {
"schema": {
"type": "object",
"$ref": "#/definitions/CreateAccessTokenOption"
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
}
}
}
}
],
],
@ -12654,6 +12646,17 @@
},
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
},
"CreateAccessTokenOption": {
"description": "CreateAccessTokenOption options when create access token",
"type": "object",
"properties": {
"name": {
"type": "string",
"x-go-name": "Name"
}
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
"CreateBranchProtectionOption": {
"CreateBranchProtectionOption": {
"description": "CreateBranchProtectionOption options for creating a branch protection",
"description": "CreateBranchProtectionOption options for creating a branch protection",
"type": "object",
"type": "object",
@ -17045,20 +17048,8 @@
"responses": {
"responses": {
"AccessToken": {
"AccessToken": {
"description": "AccessToken represents an API access token.",
"description": "AccessToken represents an API access token.",
"headers": {
"schema": {
"id": {
"$ref": "#/definitions/AccessToken"
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"sha1": {
"type": "string"
},
"token_last_eight": {
"type": "string"
}
}
}
},
},
"AccessTokenList": {
"AccessTokenList": {