mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 23:42:28 +00:00
Merge pull request 'fix(api): Clarify and correct descriptions for quota calls' (#4945) from fnetx/quota-api-language into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4945 Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
commit
69eb8f32cb
|
@ -220,7 +220,7 @@ func RemoveUserFromQuotaGroup(ctx *context.APIContext) {
|
|||
// required: true
|
||||
// - name: username
|
||||
// in: path
|
||||
// description: username of the user to add to the quota group
|
||||
// description: username of the user to remove from the quota group
|
||||
// type: string
|
||||
// required: true
|
||||
// responses:
|
||||
|
@ -255,12 +255,12 @@ func SetUserQuotaGroups(ctx *context.APIContext) {
|
|||
// parameters:
|
||||
// - name: username
|
||||
// in: path
|
||||
// description: username of the user to add to the quota group
|
||||
// description: username of the user to modify the quota groups from
|
||||
// type: string
|
||||
// required: true
|
||||
// - name: groups
|
||||
// in: body
|
||||
// description: quota group to remove a user from
|
||||
// description: list of groups that the user should be a member of
|
||||
// schema:
|
||||
// "$ref": "#/definitions/SetUserQuotaGroupsOptions"
|
||||
// required: true
|
||||
|
@ -405,7 +405,7 @@ func RemoveRuleFromQuotaGroup(ctx *context.APIContext) {
|
|||
// parameters:
|
||||
// - name: quotagroup
|
||||
// in: path
|
||||
// description: quota group to add a rule to
|
||||
// description: quota group to remove a rule from
|
||||
// type: string
|
||||
// required: true
|
||||
// - name: quotarule
|
||||
|
|
8
templates/swagger/v1_json.tmpl
generated
8
templates/swagger/v1_json.tmpl
generated
|
@ -670,7 +670,7 @@
|
|||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "quota group to add a rule to",
|
||||
"description": "quota group to remove a rule from",
|
||||
"name": "quotagroup",
|
||||
"in": "path",
|
||||
"required": true
|
||||
|
@ -800,7 +800,7 @@
|
|||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "username of the user to add to the quota group",
|
||||
"description": "username of the user to remove from the quota group",
|
||||
"name": "username",
|
||||
"in": "path",
|
||||
"required": true
|
||||
|
@ -1465,13 +1465,13 @@
|
|||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "username of the user to add to the quota group",
|
||||
"description": "username of the user to modify the quota groups from",
|
||||
"name": "username",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "quota group to remove a user from",
|
||||
"description": "list of groups that the user should be a member of",
|
||||
"name": "groups",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
|
|
Loading…
Reference in a new issue