fixes swagger documentation

* create groups endpoint was missing some information
This commit is contained in:
Bernhard B
2021-03-20 20:01:08 +01:00
parent b9ff3062bd
commit d9cbc9d985
4 changed files with 77 additions and 15 deletions

View File

@@ -262,6 +262,15 @@ var doc = `{
],
"summary": "Create a new Signal Group.",
"parameters": [
{
"description": "Input Data",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/api.CreateGroupRequest"
}
},
{
"type": "string",
"description": "Registered Phone Number",
@@ -274,7 +283,7 @@ var doc = `{
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/api.CreateGroup"
"$ref": "#/definitions/api.CreateGroupResponse"
}
},
"400": {
@@ -932,7 +941,21 @@ var doc = `{
}
}
},
"api.CreateGroup": {
"api.CreateGroupRequest": {
"type": "object",
"properties": {
"members": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
}
}
},
"api.CreateGroupResponse": {
"type": "object",
"properties": {
"id": {