mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 08:47:42 -05:00
16696a42f5
close #27801 --------- Co-authored-by: silverwind <me@silverwind.io> (cherry picked from commit 62b073e6f31645e446c7e8d6b5a506f61b47924e) Conflicts: - modules/util/util.go Trivial resolution, only picking the newly introduced function - routers/api/v1/swagger/options.go Trivial resolution. We don't have UserBadges, don't pick that part. - templates/swagger/v1_json.tmpl Regenerated.
34 lines
707 B
Go
34 lines
707 B
Go
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package swagger
|
|
|
|
import api "code.gitea.io/gitea/modules/structs"
|
|
|
|
// SecretList
|
|
// swagger:response SecretList
|
|
type swaggerResponseSecretList struct {
|
|
// in:body
|
|
Body []api.Secret `json:"body"`
|
|
}
|
|
|
|
// Secret
|
|
// swagger:response Secret
|
|
type swaggerResponseSecret struct {
|
|
// in:body
|
|
Body api.Secret `json:"body"`
|
|
}
|
|
|
|
// ActionVariable
|
|
// swagger:response ActionVariable
|
|
type swaggerResponseActionVariable struct {
|
|
// in:body
|
|
Body api.ActionVariable `json:"body"`
|
|
}
|
|
|
|
// VariableList
|
|
// swagger:response VariableList
|
|
type swaggerResponseVariableList struct {
|
|
// in:body
|
|
Body []api.ActionVariable `json:"body"`
|
|
}
|