lib/apia/api.rb
# Return all objects which are referenced by the API. This list is used for the purposes
# of validating all objects and generating schemas.
#
# @param include_apia_controller [Boolean] whether the schema/internal API should be included
# @return [Apia::ObjectSet]
Return all objects which are referenced by the API. This list is used for the purposes
of validating all objects and generating schemas.
Return all objects which are referenced by the API . This list is used for the purposes of validating all objects and generating schemas .
def objects
        set = ObjectSet.new([self])
        if definition.authenticator
          set.add_object(definition.authenticator)
        end
        definition.route_set.controllers.each do |con|
          set.add_object(con)
        end
        definition.route_set.endpoints.each do |endpoint|
          set.add_object(endpoint)
        end
        set
      end
def objects set = ObjectSet . new ( [ self ] ) if definition . authenticator set . add_object ( definition . authenticator ) end definition . route_set . controllers . each do | con | set . add_object ( con ) end definition . route_set . endpoints . each do | endpoint | set . add_object ( endpoint ) end set end
Return all objects which are referenced by the API.
Return all objects which are referenced by the API .
None
Apia::ObjectSet
include_apia_controller
<not_specific>
whether the schema/internal API should be included
whether the schema / internal API should be included