summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/groups.rb1
-rw-r--r--lib/api/projects.rb10
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb
index 265417fd6bc..290b78d8017 100644
--- a/lib/api/groups.rb
+++ b/lib/api/groups.rb
@@ -66,7 +66,6 @@ module API
present group, with: Entities::GroupDetail
end
-
# Remove group
#
# Parameters:
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index cf357b23c40..221f1f1e23c 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -129,6 +129,16 @@ module API
end
end
+ # Remove project
+ #
+ # Parameters:
+ # id (required) - The ID of a project
+ # Example Request:
+ # DELETE /projects/:id
+ delete ":id" do
+ authorize! :remove_project, user_project
+ user_project.destroy
+ end
# Mark this project as forked from another
#