Sha256: 867419f4ea388f0ce42cddffcea72555d2c2e2ad466ba1e7aa2a41df6c41ca30
Contents?: true
Size: 869 Bytes
Versions: 8
Compression:
Stored size: 869 Bytes
Contents
module Skylight module Normalizers module Grape class Endpoint < Normalizer %w[ run render run_filters ].each do |type| require "skylight/normalizers/grape/endpoint_#{type}" end require "skylight/normalizers/grape/format_response" private def get_method(endpoint) method = endpoint.options[:method].first method = "#{method}..." if endpoint.options[:method].length > 1 method end def get_path(endpoint) endpoint.options[:path].join("/") end def get_namespace(endpoint) # slice off preceding slash for data continuity ::Grape::Namespace.joined_space_path(endpoint.namespace_stackable(:namespace)).to_s[1..-1] end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems