Commit d1ac00ae authored by Tomasz Maczukin's avatar Tomasz Maczukin

Modify and fix output of delete and update of a runner

parent 24eed1c5
...@@ -167,6 +167,14 @@ Example response: ...@@ -167,6 +167,14 @@ Example response:
"last_contact": "2016-01-25T16:39:48.066Z", "last_contact": "2016-01-25T16:39:48.066Z",
"name": null, "name": null,
"platform": null, "platform": null,
"projects": [
{
"id": 1,
"name": "GitLab.org / GitLab Community Edition",
"path": "gitlab-org/gitlab-ce"
}
],
"token": "205086a8e3b9a2b818ffac9b89d102",
"revision": null, "revision": null,
"tag_list": [ "tag_list": [
"ruby", "ruby",
...@@ -199,16 +207,10 @@ Example response: ...@@ -199,16 +207,10 @@ Example response:
```json ```json
{ {
"active": true, "active": true,
"architecture": null,
"description": "test-1-20150125-test", "description": "test-1-20150125-test",
"id": 6, "id": 6,
"is_shared": false, "is_shared": false,
"last_contact": "2016-01-25T16:39:48.066Z",
"name": null, "name": null,
"platform": null,
"revision": null,
"tag_list": [],
"version": null
} }
``` ```
......
...@@ -51,7 +51,7 @@ module API ...@@ -51,7 +51,7 @@ module API
attrs = attributes_for_keys [:description, :active, :tag_list] attrs = attributes_for_keys [:description, :active, :tag_list]
if runner.update(attrs) if runner.update(attrs)
present runner, with: Entities::RunnerDetails present runner, with: Entities::RunnerDetails, current_user: current_user
else else
render_validation_error!(runner) render_validation_error!(runner)
end end
...@@ -68,7 +68,7 @@ module API ...@@ -68,7 +68,7 @@ module API
authenticate_delete_runner!(runner) authenticate_delete_runner!(runner)
runner.destroy! runner.destroy!
present runner, with: Entities::RunnerDetails present runner, with: Entities::Runner
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment