Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
b56ee397
Commit
b56ee397
authored
Feb 02, 2016
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some fixes in runners API documentation
parent
cd62c747
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
doc/api/runners.md
doc/api/runners.md
+4
-4
lib/api/runners.rb
lib/api/runners.rb
+2
-2
No files found.
doc/api/runners.md
View file @
b56ee397
...
@@ -164,7 +164,7 @@ GET /projects/:id/runners
...
@@ -164,7 +164,7 @@ GET /projects/:id/runners
|
`id`
| integer | yes | The ID of a project |
|
`id`
| integer | yes | The ID of a project |
```
```
curl -
X DELETE -
H "PRIVATE_TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/project/9/runners"
curl -H "PRIVATE_TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/project/9/runners"
```
```
Example response:
Example response:
...
@@ -193,7 +193,7 @@ Example response:
...
@@ -193,7 +193,7 @@ Example response:
Enable available specific runner in project.
Enable available specific runner in project.
```
```
P
U
T /projects/:id/runners/:runner_id
P
OS
T /projects/:id/runners/:runner_id
```
```
| Attribute | Type | Required | Description |
| Attribute | Type | Required | Description |
...
@@ -202,7 +202,7 @@ PUT /projects/:id/runners/:runner_id
...
@@ -202,7 +202,7 @@ PUT /projects/:id/runners/:runner_id
|
`runner_id`
| integer | yes | The ID of a runner |
|
`runner_id`
| integer | yes | The ID of a runner |
```
```
curl -X P
U
T -H "PRIVATE_TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/project/9/runners/9"
curl -X P
OS
T -H "PRIVATE_TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/project/9/runners/9"
```
```
Example response:
Example response:
...
@@ -223,7 +223,7 @@ Disable a specific runner from project. It works only, if the project isn't an o
...
@@ -223,7 +223,7 @@ Disable a specific runner from project. It works only, if the project isn't an o
specified runner. If so, then an error is returned and user should use the
[
remove a runner
](
#remove-a-runner
)
feature.
specified runner. If so, then an error is returned and user should use the
[
remove a runner
](
#remove-a-runner
)
feature.
```
```
PUT
/projects/:id/runners/:runner_id
DELETE
/projects/:id/runners/:runner_id
```
```
| Attribute | Type | Required | Description |
| Attribute | Type | Required | Description |
...
...
lib/api/runners.rb
View file @
b56ee397
...
@@ -87,8 +87,8 @@ module API
...
@@ -87,8 +87,8 @@ module API
# id (required) - The ID of the project
# id (required) - The ID of the project
# runner_id (required) - The ID of the runner
# runner_id (required) - The ID of the runner
# Example Request:
# Example Request:
# P
U
T /projects/:id/runners/:runner_id
# P
OS
T /projects/:id/runners/:runner_id
p
u
t
':id/runners/:runner_id'
do
p
os
t
':id/runners/:runner_id'
do
runner
=
get_runner
(
params
[
:runner_id
])
runner
=
get_runner
(
params
[
:runner_id
])
can_enable_runner?
(
runner
)
can_enable_runner?
(
runner
)
Ci
::
RunnerProject
.
create
(
runner:
runner
,
project:
user_project
)
Ci
::
RunnerProject
.
create
(
runner:
runner
,
project:
user_project
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment