1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-30 20:51:18 +00:00
redmine/app/views/search/index.api.rsb
Jean-Philippe Lang 5533a2b5f2 REST API for Search (#6277).
Patch by Akiko Takano and Takenori TAKAKI.

git-svn-id: http://svn.redmine.org/redmine/trunk@15262 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-19 09:42:35 +00:00

13 lines
359 B
Plaintext

api.array :results 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