summaryrefslogtreecommitdiffstats
path: root/app/views/roles
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-06 10:06:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-06 10:06:32 +0000
commitbe246de16121b2c4751a8f6bfa8b0eedec767b56 (patch)
tree35ed59874026b66a786a45cd154a8c6838cc5706 /app/views/roles
parentc5665276b7a465f29230341f8800af4f77b3c141 (diff)
downloadredmine-be246de16121b2c4751a8f6bfa8b0eedec767b56.tar.gz
redmine-be246de16121b2c4751a8f6bfa8b0eedec767b56.zip
Adds a simple API for listing roles (#9725).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8799 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/roles')
-rw-r--r--app/views/roles/index.api.rsb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/roles/index.api.rsb b/app/views/roles/index.api.rsb
new file mode 100644
index 000000000..56adc767e
--- /dev/null
+++ b/app/views/roles/index.api.rsb
@@ -0,0 +1,8 @@
+api.array :roles do
+ @roles.each do |role|
+ api.role do
+ api.id role.id
+ api.name role.name
+ end
+ end
+end