From 52b961ff6aa93a2ba35381be1e4eb9ba825131dd Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Tue, 16 Feb 2016 12:45:43 +0100 Subject: iChange `name` and `path` to `name_with_namespace` and `path_with_namespace` in `RunnerProjectDetails` --- doc/api/runners.md | 8 ++++---- lib/api/entities.rb | 4 ++-- 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 -- cgit v1.2.1