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