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"
},
"api.SendMessageResponse": {
"properties": {
"timestamp": {
"type": "string"
}
},
"required": [
"timestamp"
],
"type": "object"
},
"api.SendMessageV1": {
"properties": {
"base64_attachment": {
@ -1108,6 +1097,48 @@ const docTemplate = `{
],
"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": {
"properties": {
"targetAuthor": {
@ -5035,7 +5066,7 @@ const docTemplate = `{
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/api.SendMessageResponse"
"$ref": "#/definitions/data.SendMessageResponse"
}
},
"400": {

View File

@ -367,17 +367,6 @@
],
"type": "object"
},
"api.SendMessageResponse": {
"properties": {
"timestamp": {
"type": "string"
}
},
"required": [
"timestamp"
],
"type": "object"
},
"api.SendMessageV1": {
"properties": {
"base64_attachment": {
@ -1103,6 +1092,48 @@
],
"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": {
"properties": {
"targetAuthor": {
@ -5030,7 +5061,7 @@
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/api.SendMessageResponse"
"$ref": "#/definitions/data.SendMessageResponse"
}
},
"400": {