diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-04 19:34:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-04 19:34:58 +0000 |
commit | b86a748b1d3a41fa328e4e1f61cdf1acee8137f6 (patch) | |
tree | aa4c4b166dffaf8793419072d5be08e029a9d491 /app/views/versions/show.api.rsb | |
parent | daa426167f2ce2cb9e044d340ed4ba42cfe599f6 (diff) | |
download | redmine-b86a748b1d3a41fa328e4e1f61cdf1acee8137f6.tar.gz redmine-b86a748b1d3a41fa328e4e1f61cdf1acee8137f6.zip |
Adds REST API for versions (#7403).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6180 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/versions/show.api.rsb')
-rw-r--r-- | app/views/versions/show.api.rsb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/versions/show.api.rsb b/app/views/versions/show.api.rsb new file mode 100644 index 000000000..e52c52eb1 --- /dev/null +++ b/app/views/versions/show.api.rsb @@ -0,0 +1,14 @@ +api.version do + api.id @version.id + api.project(:id => @version.project_id, :name => @version.project.name) unless @version.project.nil? + + api.name @version.name + api.description @version.description + api.status @version.status + api.due_date @version.effective_date + + render_api_custom_values @version.custom_field_values, api + + api.created_on @version.created_on + api.updated_on @version.updated_on +end |