OSDN Git Service

Makes some attributes optional in API response to get faster/lightweight responses.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 11 Dec 2010 10:19:11 +0000 (10:19 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 11 Dec 2010 10:19:11 +0000 (10:19 +0000)
commit5f57bceabbdccb9e13dd2f0a0a52a0e7fa704c6e
tree517aec2c2ce48a0b76317f1a58f0a524c7c0bfd0
parent10ba08ce13f2cfd088fb8eba0d8dd1be6145acc1
Makes some attributes optional in API response to get faster/lightweight responses.

These attributes are not required for common uses case (eg. updating an object). They can be requested in the reponse using the 'include' parameter. Example GET /issues/1.xml?include=journals. The list of attributes that can be included in responses will be documented in the wiki.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4486 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/helpers/application_helper.rb
app/views/issues/show.api.rsb
app/views/projects/show.api.rsb
app/views/users/show.api.rsb
test/integration/api_test/issues_test.rb