Commit c8e7d6df794fe845299fab07827aa35269e2c2bf
1 parent
551fa4c9
Exists in
master
and in
4 other branches
API: new feature - remove project[D
Showing
2 changed files
with
10 additions
and
1 deletions
Show diff stats
lib/api/groups.rb
lib/api/projects.rb
... | ... | @@ -129,6 +129,16 @@ module API |
129 | 129 | end |
130 | 130 | end |
131 | 131 | |
132 | + # Remove project | |
133 | + # | |
134 | + # Parameters: | |
135 | + # id (required) - The ID of a project | |
136 | + # Example Request: | |
137 | + # DELETE /projects/:id | |
138 | + delete ":id" do | |
139 | + authorize! :remove_project, user_project | |
140 | + user_project.destroy | |
141 | + end | |
132 | 142 | |
133 | 143 | # Mark this project as forked from another |
134 | 144 | # | ... | ... |