mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2026-01-24 09:14:58 +01:00
fixes swagger documentation
* create groups endpoint was missing some information
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -247,6 +247,15 @@
|
||||
],
|
||||
"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",
|
||||
@@ -259,7 +268,7 @@
|
||||
"201": {
|
||||
"description": "Created",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.CreateGroup"
|
||||
"$ref": "#/definitions/api.CreateGroupResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@@ -917,7 +926,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.CreateGroup": {
|
||||
"api.CreateGroupRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"members": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.CreateGroupResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
|
||||
@@ -15,7 +15,16 @@ definitions:
|
||||
$ref: '#/definitions/api.LoggingConfiguration'
|
||||
type: object
|
||||
type: object
|
||||
api.CreateGroup:
|
||||
api.CreateGroupRequest:
|
||||
properties:
|
||||
members:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
api.CreateGroupResponse:
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
@@ -283,6 +292,12 @@ paths:
|
||||
- application/json
|
||||
description: Create a new Signal Group with the specified members.
|
||||
parameters:
|
||||
- description: Input Data
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/api.CreateGroupRequest'
|
||||
- description: Registered Phone Number
|
||||
in: path
|
||||
name: number
|
||||
@@ -294,7 +309,7 @@ paths:
|
||||
"201":
|
||||
description: Created
|
||||
schema:
|
||||
$ref: '#/definitions/api.CreateGroup'
|
||||
$ref: '#/definitions/api.CreateGroupResponse'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
|
||||
Reference in New Issue
Block a user