Implement API endpoint to query permissions.
This commit is contained in:
parent
7b613f0920
commit
6a09f49e71
4 changed files with 64 additions and 0 deletions
9
app/views/api/permissions.builder
Normal file
9
app/views/api/permissions.builder
Normal file
|
@ -0,0 +1,9 @@
|
|||
# create list of permissions
|
||||
xml.instruct! :xml, :version=>"1.0"
|
||||
xml.osm("version" => "#{API_VERSION}", "generator" => "OpenStreetMap Server") do
|
||||
xml.permissions do
|
||||
@permissions.each do |permission|
|
||||
xml.permission :name => permission
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue