mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-09-20 06:09:28 +00:00
updated swagger docs
This commit is contained in:
parent
fd9bdae583
commit
8cc38d439a
@ -372,17 +372,6 @@ const docTemplate = `{
|
|||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"api.SendMessageResponse": {
|
|
||||||
"properties": {
|
|
||||||
"timestamp": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"timestamp"
|
|
||||||
],
|
|
||||||
"type": "object"
|
|
||||||
},
|
|
||||||
"api.SendMessageV1": {
|
"api.SendMessageV1": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"base64_attachment": {
|
"base64_attachment": {
|
||||||
@ -1108,6 +1097,48 @@ const docTemplate = `{
|
|||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"data.SendMessageError": {
|
||||||
|
"properties": {
|
||||||
|
"number": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"username": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"uuid": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"data.SendMessageErrors": {
|
||||||
|
"properties": {
|
||||||
|
"recipients": {
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/data.SendMessageError"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"data.SendMessageResponse": {
|
||||||
|
"properties": {
|
||||||
|
"errors": {
|
||||||
|
"$ref": "#/definitions/data.SendMessageErrors"
|
||||||
|
},
|
||||||
|
"timestamp": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"timestamp"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"receive.AdminDelete": {
|
"receive.AdminDelete": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"targetAuthor": {
|
"targetAuthor": {
|
||||||
@ -5035,7 +5066,7 @@ const docTemplate = `{
|
|||||||
"201": {
|
"201": {
|
||||||
"description": "Created",
|
"description": "Created",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/api.SendMessageResponse"
|
"$ref": "#/definitions/data.SendMessageResponse"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
|
|||||||
@ -367,17 +367,6 @@
|
|||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"api.SendMessageResponse": {
|
|
||||||
"properties": {
|
|
||||||
"timestamp": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"timestamp"
|
|
||||||
],
|
|
||||||
"type": "object"
|
|
||||||
},
|
|
||||||
"api.SendMessageV1": {
|
"api.SendMessageV1": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"base64_attachment": {
|
"base64_attachment": {
|
||||||
@ -1103,6 +1092,48 @@
|
|||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"data.SendMessageError": {
|
||||||
|
"properties": {
|
||||||
|
"number": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"username": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"uuid": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"data.SendMessageErrors": {
|
||||||
|
"properties": {
|
||||||
|
"recipients": {
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/data.SendMessageError"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"data.SendMessageResponse": {
|
||||||
|
"properties": {
|
||||||
|
"errors": {
|
||||||
|
"$ref": "#/definitions/data.SendMessageErrors"
|
||||||
|
},
|
||||||
|
"timestamp": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"timestamp"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"receive.AdminDelete": {
|
"receive.AdminDelete": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"targetAuthor": {
|
"targetAuthor": {
|
||||||
@ -5030,7 +5061,7 @@
|
|||||||
"201": {
|
"201": {
|
||||||
"description": "Created",
|
"description": "Created",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/api.SendMessageResponse"
|
"$ref": "#/definitions/data.SendMessageResponse"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user