docs: update swagger
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user