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