socialforge/app/views/queries/index.api.rsb

11 lines
303 B
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
api.array :queries, api_meta(:total_count => @query_count, :offset => @offset, :limit => @limit) do
@queries.each do |query|
api.query do
api.id query.id
api.name query.name
api.is_public query.is_public
api.project_id query.project_id
end
end
end