aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'docs/swagger.json')
-rw-r--r--docs/swagger.json33
1 files changed, 8 insertions, 25 deletions
diff --git a/docs/swagger.json b/docs/swagger.json
index 043fb6b..32efc4b 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -540,6 +540,13 @@
540 "required": true 540 "required": true
541 }, 541 },
542 { 542 {
543 "type": "integer",
544 "description": "Discussion ID",
545 "name": "discussionid",
546 "in": "path",
547 "required": true
548 },
549 {
543 "description": "Body", 550 "description": "Body",
544 "name": "request", 551 "name": "request",
545 "in": "body", 552 "in": "body",
@@ -1571,30 +1578,6 @@
1571 } 1578 }
1572 } 1579 }
1573 }, 1580 },
1574 "handlers.MapDiscussionOnlyTitle": {
1575 "type": "object",
1576 "properties": {
1577 "comments": {
1578 "type": "array",
1579 "items": {
1580 "$ref": "#/definitions/handlers.MapDiscussionComment"
1581 }
1582 },
1583 "creator": {
1584 "$ref": "#/definitions/models.UserShortWithAvatar"
1585 },
1586 "id": {
1587 "type": "integer"
1588 },
1589 "title": {
1590 "type": "string"
1591 },
1592 "updated_at": {
1593 "description": "Upvotes int `json:\"upvotes\"`",
1594 "type": "string"
1595 }
1596 }
1597 },
1598 "handlers.MapDiscussionResponse": { 1581 "handlers.MapDiscussionResponse": {
1599 "type": "object", 1582 "type": "object",
1600 "properties": { 1583 "properties": {
@@ -1609,7 +1592,7 @@
1609 "discussions": { 1592 "discussions": {
1610 "type": "array", 1593 "type": "array",
1611 "items": { 1594 "items": {
1612 "$ref": "#/definitions/handlers.MapDiscussionOnlyTitle" 1595 "$ref": "#/definitions/handlers.MapDiscussion"
1613 } 1596 }
1614 } 1597 }
1615 } 1598 }