Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
19
app/views/projects/index.api.rsb
Normal file
19
app/views/projects/index.api.rsb
Normal file
|
@ -0,0 +1,19 @@
|
|||
api.array :projects, api_meta(:total_count => @project_count, :offset => @offset, :limit => @limit) do
|
||||
@projects.each do |project|
|
||||
api.project do
|
||||
api.id project.id
|
||||
api.name project.name
|
||||
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
|
||||
api.is_public project.is_public?
|
||||
|
||||
render_api_custom_values project.visible_custom_field_values, api
|
||||
render_api_includes(project, api)
|
||||
|
||||
api.created_on project.created_on
|
||||
api.updated_on project.updated_on
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue