diff --git a/doc/api/runners.md b/doc/api/runners.md index 2cdd40590c1ca65bb3639907e4a09dfe3449c2b1..600f238a406ca9fc2d78bd247ca36d0cf7f3730e 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 3f1594994c936468934865cb73266fff6c5d696c..09dae1e88e2425bc6eddc8268b31e2ef6e7884b3 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