Sha256: f622c177141f89c41831cdad22e4d0bf3c80d9ccdca465565906d05a50a32efd
Contents?: true
Size: 706 Bytes
Versions: 15
Compression:
Stored size: 706 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 private def get_method(endpoint) method = endpoint.options[:method].first method << "..." if endpoint.options[:method].length > 1 method end def get_path(endpoint) endpoint.options[:path].join("/") end def get_namespace(endpoint) ::Grape::Namespace.joined_space(endpoint.namespace_stackable(:namespace)) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems