Class: ApiCanon::Swagger::ResourceListing

Inherits:
Base
  • Object
show all
Defined in:
lib/api_canon/swagger/resource_listing.rb

Instance Method Summary collapse

Methods inherited from Base

#api_version, #base_path, #swagger_version

Instance Method Details

#apisObject



5
6
7
8
9
10
11
12
# File 'lib/api_canon/swagger/resource_listing.rb', line 5

def apis
  object.collect do |endpoint, data|
    {
      :path => api_canon_swagger_doc_path(endpoint),
      :description => data.description
    }
  end
end