Module: Grape
- Defined in:
- lib/grape/middleware/versioner.rb,
lib/grape.rb,
lib/grape/api.rb,
lib/grape/route.rb,
lib/grape/entity.rb,
lib/grape/cookies.rb,
lib/grape/version.rb,
lib/grape/endpoint.rb,
lib/grape/parser/xml.rb,
lib/grape/parser/base.rb,
lib/grape/parser/json.rb,
lib/grape/validations.rb,
lib/grape/formatter/txt.rb,
lib/grape/formatter/xml.rb,
lib/grape/formatter/base.rb,
lib/grape/formatter/json.rb,
lib/grape/exceptions/base.rb,
lib/grape/middleware/base.rb,
lib/grape/util/hash_stack.rb,
lib/grape/middleware/error.rb,
lib/grape/middleware/filter.rb,
lib/grape/validations/coerce.rb,
lib/grape/validations/regexp.rb,
lib/grape/error_formatter/txt.rb,
lib/grape/error_formatter/xml.rb,
lib/grape/middleware/prefixer.rb,
lib/grape/error_formatter/base.rb,
lib/grape/error_formatter/json.rb,
lib/grape/middleware/formatter.rb,
lib/grape/validations/presence.rb,
lib/grape/middleware/auth/basic.rb,
lib/grape/middleware/auth/digest.rb,
lib/grape/middleware/versioner/path.rb,
lib/grape/middleware/versioner/param.rb,
lib/grape/exceptions/validation_error.rb,
lib/grape/formatter/serializable_hash.rb,
lib/grape/middleware/versioner/header.rb
Overview
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.
: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.
Defined Under Namespace
Modules: ErrorFormatter, Exceptions, Formatter, Middleware, Parser, Util, Validations Classes: API, Cookies, Endpoint, Entity, Route
Constant Summary collapse
- VERSION =
'0.2.3'