Sha256: 8965be2829949705967f39c26ac33ffffa2552caeff85fd139fa7edc7ba8eda7
Contents?: true
Size: 784 Bytes
Versions: 3
Compression:
Stored size: 784 Bytes
Contents
module Skylight module Normalizers module Grape class Endpoint < Normalizer %w[run render run_filters].each { |type| require "skylight/normalizers/grape/endpoint_#{type}" } 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
skylight-5.1.1 | lib/skylight/normalizers/grape/endpoint.rb |
skylight-5.1.0.beta3 | lib/skylight/normalizers/grape/endpoint.rb |
skylight-5.1.0.beta2 | lib/skylight/normalizers/grape/endpoint.rb |