Skip to content

Commit

Permalink
Added some documentation for aiohttp backend
Browse files Browse the repository at this point in the history
  • Loading branch information
dutradda committed Nov 9, 2017
1 parent 7e4ebf9 commit 742a80d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,15 @@ Flask with uWSGI`_ (this is common):
app = connexion.App(__name__, specification_dir='swagger/')
application = app.app # expose global WSGI application object
You can use the ``aiohttp`` framework as server backend as well:

.. code-block:: python
import connexion
app = connexion.AioHttpApp(__name__, specification_dir='swagger/')
app.run(port=8080)
Set up and run the installation code:

.. code-block:: bash
Expand Down
9 changes: 9 additions & 0 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ to ``tornado`` or ``gevent``:
app = connexion.FlaskApp(__name__, port = 8080, specification_dir='swagger/', server='tornado')
Connexion has the ``aiohttp`` framework as server backend too:

.. code-block:: python
import connexion
app = connexion.AioHttpApp(__name__, port = 8080, specification_dir='swagger/')
.. _Jinja2: http://jinja.pocoo.org/
.. _swagger.spec: https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md
.. _swagger.spec.operation: https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#operation-object
Expand Down

0 comments on commit 742a80d

Please sign in to comment.