Skip to content

Commit

Permalink
improved swagger documentation
Browse files Browse the repository at this point in the history
* documented styling options in v2/send endpoint
  • Loading branch information
bbernhard committed Feb 9, 2025
1 parent 845ea54 commit 4f07a64
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func (a *Api) Send(c *gin.Context) {

// @Summary Send a signal message.
// @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 formatting 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~, ||spoiler||, \`monospace\`. If you want to escape a formatting character, prefix it with two backslashes.
// @Accept json
// @Produce json
// @Success 201 {object} SendMessageResponse
Expand Down
2 changes: 1 addition & 1 deletion src/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,7 @@ const docTemplate = `{
},
"/v2/send": {
"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 formatting 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~, ||spoiler||, \\` + "`" + `monospace\\` + "`" + `. If you want to escape a formatting character, prefix it with two backslashes.",
"consumes": [
"application/json"
],
Expand Down
2 changes: 1 addition & 1 deletion src/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,7 @@
},
"/v2/send": {
"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 formatting 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~, ||spoiler||, \\`monospace\\`. If you want to escape a formatting character, prefix it with two backslashes.",
"consumes": [
"application/json"
],
Expand Down
6 changes: 3 additions & 3 deletions src/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1753,9 +1753,9 @@ paths:
consumes:
- application/json
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 (''\\'')'
you want to add formatting to your text message. Styling Options: \*italic
text\*, \*\*bold text\*\*, ~strikethrough text~, ||spoiler||, \`monospace\`.
If you want to escape a formatting character, prefix it with two backslashes.'
parameters:
- description: Input Data
in: body
Expand Down

0 comments on commit 4f07a64

Please sign in to comment.