Skip to content
Snippets Groups Projects
Verified Commit a9d60b3b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Api call to remove branch

parent 0455391a
No related branches found
No related tags found
1 merge request!6949gitlab.com issue #229 - no_avatar.png path in coffee
Loading
Loading
@@ -84,6 +84,18 @@ module API
 
present @branch, with: Entities::RepoObject, project: user_project
end
# Delete branch
#
# Parameters:
# id (required) - The ID of a project
# branch (required) - The name of the branch
# Example Request:
# DELETE /projects/:id/repository/branches/:branch
delete ":id/repository/branches/:branch" do
authorize_push_project
DeleteBranchService.new.execute(user_project, params[:branch], current_user)
end
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment