]> git.openstreetmap.org Git - rails.git/blob - app/controllers/api/capabilities_controller.rb
Merge remote-tracking branch 'upstream/pull/2131'
[rails.git] / app / controllers / api / capabilities_controller.rb
1 module Api
2   class CapabilitiesController < ApiController
3     authorize_resource :class => false
4
5     around_action :api_call_handle_error, :api_call_timeout
6
7     # External apps that use the api are able to query the api to find out some
8     # parameters of the API. It currently returns:
9     # * minimum and maximum API versions that can be used.
10     # * maximum area that can be requested in a bbox request in square degrees
11     # * number of tracepoints that are returned in each tracepoints page
12     def show
13       @database_status = database_status
14       @api_status = api_status
15       @gpx_status = gpx_status
16     end
17   end
18 end