POST to update project components
This commit is contained in:
parent
5586e8ebe4
commit
4bf2bc0c3c
@ -272,7 +272,7 @@ module Devops
|
||||
# Set components to project
|
||||
#
|
||||
# * *Request*
|
||||
# - method : PUT
|
||||
# - method : POST
|
||||
# - headers :
|
||||
# - Accept: application/json
|
||||
# - Content-Type: application/json
|
||||
@ -285,7 +285,7 @@ module Devops
|
||||
#
|
||||
# * *Returns* :
|
||||
# 200 - Updated
|
||||
app.patch_with_headers "/project/:id/components", :headers => [:accept, :content_type] do |id|
|
||||
app.post_with_headers "/project/:id/components", :headers => [:accept, :content_type] do |id|
|
||||
check_privileges("project", "w")
|
||||
res = Devops::API2_0::Handler::Project.new(request).set_project_components(id)
|
||||
create_response(res)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user