1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 01:11:12 +00:00
redmine/app/views/search/index.api.rsb
Jean-Philippe Lang e1aa18b333 Handle search pagination with the REST API (#6277).
git-svn-id: http://svn.redmine.org/redmine/trunk@15264 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-19 10:27:55 +00:00

13 lines
438 B
Plaintext

api.array :results, api_meta(:total_count => @result_count, :offset => @offset, :limit => @limit) do
@results.each do |result|
api.result do
api.id result.id
api.title result.event_title
api.type result.event_type
api.url url_for(result.event_url(:only_path => false))
api.description result.event_description
api.datetime result.event_datetime
end
end
end