updated swagger docs

This commit is contained in:
Bernhard B 2026-09-04 15:23:28 +02:00
parent fd9bdae583
commit 8cc38d439a
2 changed files with 86 additions and 24 deletions

View File

@ -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": {

View File

@ -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": {