Sha256: 0c2cc8860d372e9e51ee2a81e71eb0651c5cc5053233dd81277deabe5086a171
Contents?: true
Size: 727 Bytes
Versions: 9
Compression:
Stored size: 727 Bytes
Contents
require "grape-swagger" require_relative "../api" class Api::Base < Grape::API content_type :jsonapi, "application/vnd.api+json" formatter :json, Grape::Formatter::Jsonapi formatter :jsonapi, Grape::Formatter::Jsonapi format :jsonapi default_error_formatter :json # TODO Shouldn't this be in V1 or not versioned? include Api::V1::ExceptionsHandler mount Api::V1::Root # Swagger docs are available at `/api/swagger_doc.json`. add_swagger_documentation \ hide_documentation_path: true, array_use_braces: true, api_version: "v1", info: { title: I18n.t("application.name"), description: I18n.t("application.description") }, endpoint_auth_wrapper: WineBouncer::OAuth2 end
Version data entries
9 entries across 9 versions & 1 rubygems