module Grape
Versioners set env when a version is defined on an API
and on the requests. The current methods for determining version are:
:header - version from HTTP Accept header. :accept_version_header - version from HTTP Accept-Version header :path - version from uri. e.g. /v1/resource :param - version from uri query string, e.g. /v1/resource?apiver=v1
See individual classes for details.
Act like a Grape::Router::Route
but for greedy_match see @neutral_map
only exists to make it shorter for external use
Constants
- HTTP_SUPPORTED_METHODS
- Json
- VERSION
-
The current version of
Grape
. - Xml
Public Class Methods
Source
# File lib/grape.rb, line 72 def self.deprecator @deprecator ||= ActiveSupport::Deprecation.new('2.0', 'Grape') end