docs: update swagger

This commit is contained in:
2025-11-23 13:47:38 +01:00
parent 9c67cd2a47
commit 964785e494
3 changed files with 46 additions and 44 deletions

View File

@@ -1367,7 +1367,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/handlers.VoteRequest"
"$ref": "#/definitions/dto.VoteRequest"
}
}
],
@@ -2015,6 +2015,22 @@
}
}
},
"dto.VoteRequest": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"up",
"down",
"none"
]
}
}
},
"handlers.APIInfo": {
"type": "object",
"properties": {
@@ -2147,21 +2163,6 @@
}
}
},
"handlers.VoteRequest": {
"description": "Vote request with type field. All votes are handled the same way.",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"up",
"down",
"none"
],
"example": "up"
}
}
},
"handlers.VoteResponse": {
"type": "object",
"properties": {