diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-03-19 09:42:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-03-19 09:42:35 +0000 |
commit | 5533a2b5f2e4b25e15de7f21357c0ef5672e09c4 (patch) | |
tree | 9abbcf8619b0b859d0652d281b9e41399f5ff64d /app/views/search | |
parent | 06dec37f499ab398dc89b9710030d40382c56508 (diff) | |
download | redmine-5533a2b5f2e4b25e15de7f21357c0ef5672e09c4.tar.gz redmine-5533a2b5f2e4b25e15de7f21357c0ef5672e09c4.zip |
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
Diffstat (limited to 'app/views/search')
-rw-r--r-- | app/views/search/index.api.rsb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/search/index.api.rsb b/app/views/search/index.api.rsb new file mode 100644 index 000000000..831f04b5f --- /dev/null +++ b/app/views/search/index.api.rsb @@ -0,0 +1,12 @@ +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 |