added documentation for error codes

This commit is contained in:
kolaente 2018-06-12 08:31:00 +02:00
parent bbc51dcd88
commit ca83a54651
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -363,6 +363,14 @@ func UpdateIssueDeadline(ctx *context.APIContext, form api.EditDeadlineOption) {
// responses:
// "201":
// "$ref": "#/responses/IssueDeadline"
// "403":
// description: Not repo writer
// schema:
// "$ref": "#/responses/forbidden"
// "404":
// description: Issue not found
// schema:
// "$ref": "#/responses/empty"
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
if err != nil {