Commit c8e7d6df authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

API: new feature - remove project[D

parent 551fa4c9
...@@ -66,7 +66,6 @@ module API ...@@ -66,7 +66,6 @@ module API
present group, with: Entities::GroupDetail present group, with: Entities::GroupDetail
end end
# Remove group # Remove group
# #
# Parameters: # Parameters:
......
...@@ -129,6 +129,16 @@ module API ...@@ -129,6 +129,16 @@ module API
end end
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 # Mark this project as forked from another
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment