From de19424ea5b5c273817732a28a7f7ca6073e4107 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 11 Jan 2014 11:33:47 +0000 Subject: Adds project status to GET /projects/:id and GET /projects API response (#15815). git-svn-id: http://svn.redmine.org/redmine/trunk@12649 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/index.api.rsb | 1 + app/views/projects/show.api.rsb | 1 + 2 files changed, 2 insertions(+) (limited to 'app/views/projects') diff --git a/app/views/projects/index.api.rsb b/app/views/projects/index.api.rsb index 8fdea9bae..1aa5fe796 100644 --- a/app/views/projects/index.api.rsb +++ b/app/views/projects/index.api.rsb @@ -6,6 +6,7 @@ api.array :projects, api_meta(:total_count => @project_count, :offset => @offset api.identifier project.identifier api.description project.description api.parent(:id => project.parent.id, :name => project.parent.name) if project.parent && project.parent.visible? + api.status project.status render_api_custom_values project.visible_custom_field_values, api diff --git a/app/views/projects/show.api.rsb b/app/views/projects/show.api.rsb index a6f26f893..e84ebb073 100644 --- a/app/views/projects/show.api.rsb +++ b/app/views/projects/show.api.rsb @@ -5,6 +5,7 @@ api.project do api.description @project.description api.homepage @project.homepage api.parent(:id => @project.parent.id, :name => @project.parent.name) if @project.parent && @project.parent.visible? + api.status @project.status render_api_custom_values @project.visible_custom_field_values, api -- cgit v1.2.3