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
This commit is contained in:
Jean-Philippe Lang
2012-02-06 10:06:32 +00:00
parent c5665276b7
commit be246de161
4 changed files with 93 additions and 4 deletions
+8
View File
@@ -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