diff --git a/cyborg/cmd/__init__.py b/cyborg/cmd/__init__.py index 767af604..6f57a578 100644 --- a/cyborg/cmd/__init__.py +++ b/cyborg/cmd/__init__.py @@ -20,8 +20,8 @@ eventlet.monkey_patch() # Monkey patch the original current_thread to use the up-to-date _active # global variable. See https://bugs.launchpad.net/bugs/1863021 and # https://github.com/eventlet/eventlet/issues/592 -import __original_module_threading as orig_threading # noqa -import threading # noqa +import __original_module_threading as orig_threading # noqa +import threading # noqa orig_threading.current_thread.__globals__['_active'] = threading._active i18n.install('cyborg') diff --git a/doc/source/index.rst b/doc/source/index.rst index 494ef788..a2965470 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -59,10 +59,18 @@ Interface (CLI) can be found in this section of documentation. Using the API ~~~~~~~~~~~~~ -All end user (and some administrative) features of Cyborg are exposed via a -REST API, which can be used to build more complicated logic or automation with -Cyborg. This can be consumed directly, or via various SDKs. The following -resources will help you get started with consuming the API directly. +Following the Ussuri release, every Cyborg deployment should have the +following endpoints: + +/ - list of available versions + +/v2 - the version 2 of the Acceleration API, it uses microversions + +/v2.0 - same API as v2, except uses microversions + +The follwoing guide concentrates on documenting the v2 API, please note that +the v2.0 is the first microversion of the v2 API and are also covered by this +guide. * `Cyborg API Reference `_: The complete reference for the accelerator API, including all methods and