build_json_apis

in report/reporter.rb [72:95]


    def build_json_apis
      @json_spec = {
        internal: [],
        apis: [],
        exclusive: []
      }
      
      apis = Dir[STACK_FILES].map { |path| path.split('/').last.gsub('.json', '') }
      apis.each do |name|
        
        if name.start_with?('_') || EXCLUDED_APIS.select { |api| name.match? api[:name] }.any?
          @json_spec[:internal] << name
        elsif (endpoint = @endpoints.find { |e| e.name == name })
          tested = ApiEndpoint::find_rest_api_test(name)
          @json_spec[:apis] << { name: name, tested: tested }
          
          endpoint.test_elasticsearch = tested
        else
          
          @json_spec[:exclusive] << { name: name, tested: ApiEndpoint::find_rest_api_test(name) }
        end
      end
    end