2011-07-04 23:34:58 +04:00
|
|
|
api.array :versions, api_meta(:total_count => @versions.size) do
|
|
|
|
@versions.each do |version|
|
|
|
|
api.version do
|
|
|
|
api.id version.id
|
|
|
|
api.project(:id => version.project_id, :name => version.project.name) unless version.project.nil?
|
2011-09-17 03:57:15 +04:00
|
|
|
|
2011-09-18 06:42:31 +04:00
|
|
|
api.name version.name
|
2011-07-04 23:34:58 +04:00
|
|
|
api.description version.description
|
|
|
|
api.status version.status
|
|
|
|
api.due_date version.effective_date
|
2012-07-31 22:14:28 +04:00
|
|
|
api.sharing version.sharing
|
2011-09-17 03:57:15 +04:00
|
|
|
|
2011-07-04 23:34:58 +04:00
|
|
|
render_api_custom_values version.custom_field_values, api
|
2011-09-17 03:57:15 +04:00
|
|
|
|
2011-07-04 23:34:58 +04:00
|
|
|
api.created_on version.created_on
|
|
|
|
api.updated_on version.updated_on
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|