code: def get(self):
          
          base_endpoint = self.config.get('endpoint', 'flasgger')
          specs = [
              {
                  "url": url_for(".".join((base_endpoint, spec['endpoint']))),
                  "title": spec.get('title', 'API Spec 1'),
                  "version": spec.get("version", '0.0.1'),
                  "endpoint": spec.get('endpoint')
              }
              for spec in self.config.get('specs', [])
          ]
          data = {
              "specs": specs,
              "title": self.config.get('title', 'Flasgger')
          }
          if request.args.get('json'):
              # calling with ?json returns specs
              return jsonify(data)
          else:  # pragma: no cover
              data['flasgger_config'] = self.config
              data['json'] = json
              data['flasgger_version'] = __version__
              data['favicon'] = self.config.get(
                  'favicon',
                  url_for('flasgger.static', filename='favicon-32x32.png')
              )
              data['swagger_ui_bundle_js'] = self.config.get(
                  'swagger_ui_bundle_js',
                  url_for('flasgger.static', filename='swagger-ui-bundle.js')
              )
              data['swagger_ui_standalone_preset_js'] = self.config.get(
                  'swagger_ui_standalone_preset_js',
                  url_for('flasgger.static',
                          filename='swagger-ui-standalone-preset.js')
              )
              data['jquery_js'] = self.config.get(
                  'jquery_js',
                  url_for('flasgger.static', filename='lib/jquery.min.js')
              )
              data['swagger_ui_css'] = self.config.get(
                  'swagger_ui_css',
                  url_for('flasgger.static', filename='swagger-ui.css')
              )
              return render_template(
                  'flasgger/index.html',
                  **data
              )
docs: The data under /apidocs
          json or Swagger UI