Commit c8e7d6df794fe845299fab07827aa35269e2c2bf

Authored by Dmitriy Zaporozhets
1 parent 551fa4c9

API: new feature - remove project[D

Showing 2 changed files with 10 additions and 1 deletions   Show diff stats
lib/api/groups.rb
... ... @@ -66,7 +66,6 @@ module API
66 66 present group, with: Entities::GroupDetail
67 67 end
68 68  
69   -
70 69 # Remove group
71 70 #
72 71 # Parameters:
... ...
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 #
... ...