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-16 12:45:43 +0100
commit52b961ff6aa93a2ba35381be1e4eb9ba825131dd (patch)
tree65cdfd1e6c6dff67d6de8f1f339b9d331cfa3043
parentdbd69ab42498527274d769a28cbbb27b98dfa6f5 (diff)
downloadgitlab-ce-52b961ff6aa93a2ba35381be1e4eb9ba825131dd.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