summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-02-16 12:45:43 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-02-19 13:18:48 +0100
commit4ebadb77dd3a6f30728d039dad5ee240d0f44a63 (patch)
treebb06a96d038b4da2941fc8f60ba4f2b4f136f30d
parent05e73356647cea999a707fd80625fcb92a93ce49 (diff)
downloadgitlab-ce-4ebadb77dd3a6f30728d039dad5ee240d0f44a63.tar.gz
iChange `name` and `path` to `name_with_namespace` and `path_with_namespace` in `RunnerProjectDetails`
-rw-r--r--doc/api/runners.md8
-rw-r--r--lib/api/entities.rb4
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/api/runners.md b/doc/api/runners.md
index 2cdd40590c1..600f238a406 100644
--- a/doc/api/runners.md
+++ b/doc/api/runners.md
@@ -122,8 +122,8 @@ Example response:
"projects": [
{
"id": 1,
- "name": "GitLab.org / GitLab Community Edition",
- "path": "gitlab-org/gitlab-ce"
+ "name_with_namespace": "GitLab.org / GitLab Community Edition",
+ "path_with_namespace": "gitlab-org/gitlab-ce"
}
],
"token": "205086a8e3b9a2b818ffac9b89d102",
@@ -170,8 +170,8 @@ Example response:
"projects": [
{
"id": 1,
- "name": "GitLab.org / GitLab Community Edition",
- "path": "gitlab-org/gitlab-ce"
+ "name_with_namespace": "GitLab.org / GitLab Community Edition",
+ "path_with_namespace": "gitlab-org/gitlab-ce"
}
],
"token": "205086a8e3b9a2b818ffac9b89d102",
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 3f1594994c9..09dae1e88e2 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -371,8 +371,8 @@ module API
class RunnerProjectDetails < Grape::Entity
expose :id
- expose :name_with_namespace, as: :name
- expose :path_with_namespace, as: :path
+ expose :name_with_namespace
+ expose :path_with_namespace
end
class Runner < Grape::Entity