mirror of
https://github.com/go-gitea/gitea
synced 2025-01-22 06:37:48 +01:00
Fix API parameter name
This commit is contained in:
parent
4a1d263133
commit
43d616d3cd
@ -18,7 +18,7 @@ func GetRegistrationToken(ctx *context.APIContext) {
|
||||
// produces:
|
||||
// - application/json
|
||||
// parameters:
|
||||
// - name: set-token
|
||||
// - name: set_token
|
||||
// in: body
|
||||
// description: set a runner register token instead of generating one.
|
||||
// type: string
|
||||
|
@ -182,7 +182,7 @@ func (Action) GetRegistrationToken(ctx *context.APIContext) {
|
||||
// description: name of the organization
|
||||
// type: string
|
||||
// required: true
|
||||
// - name: set-token
|
||||
// - name: set_token
|
||||
// in: body
|
||||
// description: set a runner register token instead of generating one.
|
||||
// type: string
|
||||
|
@ -500,7 +500,7 @@ func (Action) GetRegistrationToken(ctx *context.APIContext) {
|
||||
// description: name of the repo
|
||||
// type: string
|
||||
// required: true
|
||||
// - name: set-token
|
||||
// - name: set_token
|
||||
// in: body
|
||||
// description: set a runner register token instead of generating one.
|
||||
// type: string
|
||||
|
@ -19,7 +19,7 @@ type RegistrationToken struct {
|
||||
}
|
||||
|
||||
func GetRegistrationToken(ctx *context.APIContext, ownerID, repoID int64) {
|
||||
setToken := ctx.FormString("set-token")
|
||||
setToken := ctx.FormString("set_token")
|
||||
var token *actions_model.ActionRunnerToken
|
||||
var err error
|
||||
if setToken == "" {
|
||||
|
6
templates/swagger/v1_json.tmpl
generated
6
templates/swagger/v1_json.tmpl
generated
@ -406,7 +406,7 @@
|
||||
{
|
||||
"type": "string",
|
||||
"description": "set a runner register token instead of generating one.",
|
||||
"name": "set-token",
|
||||
"name": "set_token",
|
||||
"in": "body"
|
||||
}
|
||||
],
|
||||
@ -1714,7 +1714,7 @@
|
||||
{
|
||||
"type": "string",
|
||||
"description": "set a runner register token instead of generating one.",
|
||||
"name": "set-token",
|
||||
"name": "set_token",
|
||||
"in": "body"
|
||||
}
|
||||
],
|
||||
@ -3909,7 +3909,7 @@
|
||||
{
|
||||
"type": "string",
|
||||
"description": "set a runner register token instead of generating one.",
|
||||
"name": "set-token",
|
||||
"name": "set_token",
|
||||
"in": "body"
|
||||
}
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user