Пример #1
0
def setup(app):
    app.add_domain(HTTPDomain)
    desc_http_method.contribute_to_app(app)
    desc_http_url.contribute_to_app(app)
    desc_http_path.contribute_to_app(app)
    desc_http_patharg.contribute_to_app(app)
    desc_http_query.contribute_to_app(app)
    desc_http_queryparam.contribute_to_app(app)
    desc_http_fragment.contribute_to_app(app)
Пример #2
0
def setup(app):
  app.add_autodocumenter(RestDocumenter)
  app.add_domain(HTTPDomain)
  app.add_event('rest-setup')
  desc_http_method.contribute_to_app(app)
  desc_http_url.contribute_to_app(app)
  desc_http_path.contribute_to_app(app)
  desc_http_patharg.contribute_to_app(app)
  desc_http_query.contribute_to_app(app)
  desc_http_queryparam.contribute_to_app(app)
  desc_http_fragment.contribute_to_app(app)
  desc_http_response.contribute_to_app(app)
  desc_http_example.contribute_to_app(app)
  app.add_config_value('auto_curl', False, False)
  app.add_config_value('debug', False, False)
  app.connect('builder-inited', emit_rest_setup)
  app.connect('autodoc-process-docstring', replace_curl_examples)
  app.connect('build-finished', teardown)