fix(api): Correct descriptions for quota calls
This commit is contained in:
parent
4132b18e59
commit
e330c88411
2 changed files with 8 additions and 8 deletions
|
@ -220,7 +220,7 @@ func RemoveUserFromQuotaGroup(ctx *context.APIContext) {
|
||||||
// required: true
|
// required: true
|
||||||
// - name: username
|
// - name: username
|
||||||
// in: path
|
// 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
|
// type: string
|
||||||
// required: true
|
// required: true
|
||||||
// responses:
|
// responses:
|
||||||
|
@ -255,12 +255,12 @@ func SetUserQuotaGroups(ctx *context.APIContext) {
|
||||||
// parameters:
|
// parameters:
|
||||||
// - name: username
|
// - name: username
|
||||||
// in: path
|
// 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
|
// type: string
|
||||||
// required: true
|
// required: true
|
||||||
// - name: groups
|
// - name: groups
|
||||||
// in: body
|
// in: body
|
||||||
// description: quota group to remove a user from
|
// description: list of groups that the user should be a member of
|
||||||
// schema:
|
// schema:
|
||||||
// "$ref": "#/definitions/SetUserQuotaGroupsOptions"
|
// "$ref": "#/definitions/SetUserQuotaGroupsOptions"
|
||||||
// required: true
|
// required: true
|
||||||
|
@ -405,7 +405,7 @@ func RemoveRuleFromQuotaGroup(ctx *context.APIContext) {
|
||||||
// parameters:
|
// parameters:
|
||||||
// - name: quotagroup
|
// - name: quotagroup
|
||||||
// in: path
|
// in: path
|
||||||
// description: quota group to add a rule to
|
// description: quota group to remove a rule from
|
||||||
// type: string
|
// type: string
|
||||||
// required: true
|
// required: true
|
||||||
// - name: quotarule
|
// - name: quotarule
|
||||||
|
|
8
templates/swagger/v1_json.tmpl
generated
8
templates/swagger/v1_json.tmpl
generated
|
@ -670,7 +670,7 @@
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "quota group to add a rule to",
|
"description": "quota group to remove a rule from",
|
||||||
"name": "quotagroup",
|
"name": "quotagroup",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
|
@ -800,7 +800,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"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",
|
"name": "username",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
|
@ -1465,13 +1465,13 @@
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"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",
|
"name": "username",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "quota group to remove a user from",
|
"description": "list of groups that the user should be a member of",
|
||||||
"name": "groups",
|
"name": "groups",
|
||||||
"in": "body",
|
"in": "body",
|
||||||
"required": true,
|
"required": true,
|
||||||
|
|
Loading…
Reference in a new issue