fixed swagger API documentation

This commit is contained in:
Bernhard B 2024-12-24 23:16:50 +01:00
parent a70c2994c3
commit d5a1d252a2
4 changed files with 5 additions and 5 deletions

View File

@ -395,7 +395,7 @@ func (a *Api) Send(c *gin.Context) {
// @Summary Send a signal message. // @Summary Send a signal message.
// @Tags Messages // @Tags Messages
// @Description Send a signal message. Set the text_mode to 'styled' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~. If you want to escape a character, prefix it with two backslashes ('\\') // @Description Send a signal message. Set the text_mode to 'styled' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~. If you want to escape a formatting character, prefix it with two backslashes ('\\')
// @Accept json // @Accept json
// @Produce json // @Produce json
// @Success 201 {object} SendMessageResponse // @Success 201 {object} SendMessageResponse

View File

@ -2014,7 +2014,7 @@ const docTemplate = `{
}, },
"/v2/send": { "/v2/send": {
"post": { "post": {
"description": "Send a signal message. Set the text_mode to 'styled' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~. If you want to escape a character, prefix it with two backslashes ('\\\\')", "description": "Send a signal message. Set the text_mode to 'styled' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~. If you want to escape a formatting character, prefix it with two backslashes ('\\\\')",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],

View File

@ -2011,7 +2011,7 @@
}, },
"/v2/send": { "/v2/send": {
"post": { "post": {
"description": "Send a signal message. Set the text_mode to 'styled' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~. If you want to escape a character, prefix it with two backslashes ('\\\\')", "description": "Send a signal message. Set the text_mode to 'styled' in case you want to add formatting to your text message. Styling Options: *italic text*, **bold text**, ~strikethrough text~. If you want to escape a formatting character, prefix it with two backslashes ('\\\\')",
"consumes": [ "consumes": [
"application/json" "application/json"
], ],

View File

@ -1754,8 +1754,8 @@ paths:
- application/json - application/json
description: 'Send a signal message. Set the text_mode to ''styled'' in case description: 'Send a signal message. Set the text_mode to ''styled'' in case
you want to add formatting to your text message. Styling Options: *italic you want to add formatting to your text message. Styling Options: *italic
text*, **bold text**, ~strikethrough text~. If you want to escape a character, text*, **bold text**, ~strikethrough text~. If you want to escape a formatting
prefix it with two backslashes (''\\'')' character, prefix it with two backslashes (''\\'')'
parameters: parameters:
- description: Input Data - description: Input Data
in: body in: body