diff --git a/routers/api/v1/repo/collaborators.go b/routers/api/v1/repo/collaborators.go index a43a21a88e..9ef1a92be4 100644 --- a/routers/api/v1/repo/collaborators.go +++ b/routers/api/v1/repo/collaborators.go @@ -82,6 +82,7 @@ func IsCollaborator(ctx *context.APIContext) { // swagger:operation GET /repos/{owner}/{repo}/collaborators/{collaborator} repository repoCheckCollaborator // --- // summary: Check if a user is a collaborator of a repository + // description: If the user is a collaborator, return 204. If the user is not a collaborator, return 404. // produces: // - application/json // parameters: diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 2a8252557e..0d8497ca75 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -6074,6 +6074,7 @@ }, "/repos/{owner}/{repo}/collaborators/{collaborator}": { "get": { + "description": "If the user is a collaborator, return 204. If the user is not a collaborator, return 404.", "produces": [ "application/json" ],