diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-09 14:41:41 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-09 14:41:41 +0300 |
commit | c8e7d6df794fe845299fab07827aa35269e2c2bf (patch) | |
tree | 069e7c98289ce477678cf24ad7d89c923c5f24b9 /lib/api/projects.rb | |
parent | 551fa4c9d017b42ca362055d8bddb817bb395a52 (diff) | |
download | gitlab-ce-c8e7d6df794fe845299fab07827aa35269e2c2bf.tar.gz |
API: new feature - remove project[D
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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 # |