Class: Api::OpenApi::V3

Inherits:
Base
  • Object
show all
Defined in:
lib/api/open_api/v3.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Api::OpenApi::Base

Instance Method Details

#descriptionObject



16
17
18
# File 'lib/api/open_api/v3.rb', line 16

def description
  v3_description
end

#generateObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/api/open_api/v3.rb', line 4

def generate
  paths = {}
  paths.merge!(v3_authenticate_path)
  paths.merge!(v3_raw_sql_paths)
  paths.merge!(v3_info_paths)
  ApplicationRecord.subclasses.sort_by(&:to_s).each do |model_class|
    paths.merge!(v3_crud_paths(model_class))
    paths.merge!(v3_custom_action_paths(model_class))
  end
  paths
end