File tree Expand file tree Collapse file tree 3 files changed +63
-2
lines changed Expand file tree Collapse file tree 3 files changed +63
-2
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ func GetCommentReactions(ctx *context.APIContext, form api.CommentReactionList)
422
422
// required: true
423
423
// responses:
424
424
// "200":
425
- // "$ref": "#/responses/CommentReactions "
425
+ // "$ref": "#/responses/CommentReactionList "
426
426
comment , err := models .GetCommentByID (ctx .ParamsInt64 (":id" ))
427
427
if err != nil {
428
428
if models .IsErrCommentNotExist (err ) {
Original file line number Diff line number Diff line change @@ -84,3 +84,17 @@ type swaggerIssueDeadline struct {
84
84
// in:body
85
85
Body api.IssueDeadline `json:"body"`
86
86
}
87
+
88
+ // CommentReaction
89
+ // swagger:response CommentReaction
90
+ type swaggerCommentReaction struct {
91
+ // in:body
92
+ Body api.CommentReactionList `json:"body"`
93
+ }
94
+
95
+ // CommentReactionList
96
+ // swagger:response CommentReactionList
97
+ type swaggerCommentReactionList struct {
98
+ // in:body
99
+ Body api.CommentReactionList `json:"body"`
100
+ }
Original file line number Diff line number Diff line change 3042
3042
],
3043
3043
"responses": {
3044
3044
"200": {
3045
- "$ref": "#/responses/CommentReactions "
3045
+ "$ref": "#/responses/CommentReactionList "
3046
3046
}
3047
3047
}
3048
3048
},
7781
7781
},
7782
7782
"x-go-package": "code.gitea.io/gitea/modules/structs"
7783
7783
},
7784
+ "CommentReaction": {
7785
+ "description": "CommentReaction represent comment reactions",
7786
+ "type": "object",
7787
+ "required": [
7788
+ "reaction",
7789
+ "users"
7790
+ ],
7791
+ "properties": {
7792
+ "count": {
7793
+ "type": "integer",
7794
+ "format": "int64",
7795
+ "x-go-name": "Count"
7796
+ },
7797
+ "reaction": {
7798
+ "type": "string",
7799
+ "x-go-name": "Reaction"
7800
+ },
7801
+ "users": {
7802
+ "type": "array",
7803
+ "items": {
7804
+ "type": "string"
7805
+ },
7806
+ "x-go-name": "Users"
7807
+ }
7808
+ },
7809
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
7810
+ },
7811
+ "CommentReactionList": {
7812
+ "description": "CommentReactionList is a list of comment reactions",
7813
+ "type": "array",
7814
+ "items": {
7815
+ "$ref": "#/definitions/CommentReaction"
7816
+ },
7817
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
7818
+ },
7784
7819
"Commit": {
7785
7820
"type": "object",
7786
7821
"title": "Commit contains information generated from a Git commit.",
10959
10994
}
10960
10995
}
10961
10996
},
10997
+ "CommentReaction": {
10998
+ "description": "CommentReaction",
10999
+ "schema": {
11000
+ "$ref": "#/definitions/CommentReactionList"
11001
+ }
11002
+ },
11003
+ "CommentReactionList": {
11004
+ "description": "CommentReactionList",
11005
+ "schema": {
11006
+ "$ref": "#/definitions/CommentReactionList"
11007
+ }
11008
+ },
10962
11009
"Commit": {
10963
11010
"description": "Commit",
10964
11011
"schema": {
You can’t perform that action at this time.
0 commit comments