document 404 responce and meaning (#11073)

pull/10906/head^2
6543 5 years ago committed by GitHub
parent 2e85ad665a
commit 70fab7e26a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/api/v1/user/watch.go
  2. 3
      templates/swagger/v1_json.tmpl

@ -114,6 +114,8 @@ func IsWatching(ctx *context.APIContext) {
// responses:
// "200":
// "$ref": "#/responses/WatchInfo"
// "404":
// description: User is not watching this repo or repo do not exist
if models.IsWatching(ctx.User.ID, ctx.Repo.Repository.ID) {
ctx.JSON(http.StatusOK, api.WatchInfo{

@ -7411,6 +7411,9 @@
"responses": {
"200": {
"$ref": "#/responses/WatchInfo"
},
"404": {
"description": "User is not watching this repo or repo do not exist"
}
}
},

Loading…
Cancel
Save