summaryrefslogtreecommitdiff
path: root/lib/api/runners.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-02-02 14:52:33 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-02-19 13:18:46 +0100
commitb56ee397bb5fa32e3a53fdaee3d6592f1486d7f1 (patch)
tree94fe22fd4e736442fcec3d360411e1793ffcf94d /lib/api/runners.rb
parentcd62c7470019a88cfda7c2d54a14eaf8db21e9d5 (diff)
downloadgitlab-ce-b56ee397bb5fa32e3a53fdaee3d6592f1486d7f1.tar.gz
Add some fixes in runners API documentation
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 799c10a1897..f4f8f2f2247 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -87,8 +87,8 @@ module API
# id (required) - The ID of the project
# runner_id (required) - The ID of the runner
# Example Request:
- # PUT /projects/:id/runners/:runner_id
- put ':id/runners/:runner_id' do
+ # POST /projects/:id/runners/:runner_id
+ post ':id/runners/:runner_id' do
runner = get_runner(params[:runner_id])
can_enable_runner?(runner)
Ci::RunnerProject.create(runner: runner, project: user_project)