chore: add request body to patch groups openapi spec (#9101)

This commit is contained in:
Colin Adler
2023-08-15 15:29:15 +00:00
committed by GitHub
parent 41433cd1ec
commit 9d9b330b16
5 changed files with 124 additions and 3 deletions
+41
View File
@@ -845,6 +845,9 @@ const docTemplate = `{
"CoderSessionToken": []
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
@@ -860,6 +863,15 @@ const docTemplate = `{
"name": "group",
"in": "path",
"required": true
},
{
"description": "Patch group request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/codersdk.PatchGroupRequest"
}
}
],
"responses": {
@@ -8727,6 +8739,35 @@ const docTemplate = `{
}
}
},
"codersdk.PatchGroupRequest": {
"type": "object",
"properties": {
"add_users": {
"type": "array",
"items": {
"type": "string"
}
},
"avatar_url": {
"type": "string"
},
"display_name": {
"type": "string"
},
"name": {
"type": "string"
},
"quota_allowance": {
"type": "integer"
},
"remove_users": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"codersdk.PatchTemplateVersionRequest": {
"type": "object",
"properties": {
+39
View File
@@ -729,6 +729,7 @@
"CoderSessionToken": []
}
],
"consumes": ["application/json"],
"produces": ["application/json"],
"tags": ["Enterprise"],
"summary": "Update group by name",
@@ -740,6 +741,15 @@
"name": "group",
"in": "path",
"required": true
},
{
"description": "Patch group request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/codersdk.PatchGroupRequest"
}
}
],
"responses": {
@@ -7835,6 +7845,35 @@
}
}
},
"codersdk.PatchGroupRequest": {
"type": "object",
"properties": {
"add_users": {
"type": "array",
"items": {
"type": "string"
}
},
"avatar_url": {
"type": "string"
},
"display_name": {
"type": "string"
},
"name": {
"type": "string"
},
"quota_allowance": {
"type": "integer"
},
"remove_users": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"codersdk.PatchTemplateVersionRequest": {
"type": "object",
"properties": {