We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e85ad6 commit 70fab7eCopy full SHA for 70fab7e
routers/api/v1/user/watch.go
@@ -114,6 +114,8 @@ func IsWatching(ctx *context.APIContext) {
114
// responses:
115
// "200":
116
// "$ref": "#/responses/WatchInfo"
117
+ // "404":
118
+ // description: User is not watching this repo or repo do not exist
119
120
if models.IsWatching(ctx.User.ID, ctx.Repo.Repository.ID) {
121
ctx.JSON(http.StatusOK, api.WatchInfo{
templates/swagger/v1_json.tmpl
@@ -7411,6 +7411,9 @@
7411
"responses": {
7412
"200": {
7413
"$ref": "#/responses/WatchInfo"
7414
+ },
7415
+ "404": {
7416
+ "description": "User is not watching this repo or repo do not exist"
7417
}
7418
7419
},
0 commit comments