mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-07 12:27:46 +00:00
#292 mention --mock in docs
This commit is contained in:
11
docs/cli.rst
11
docs/cli.rst
@@ -48,3 +48,14 @@ list run:
|
|||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ connexion run --help
|
$ connexion run --help
|
||||||
|
|
||||||
|
Running a mock server
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
You can run a simple server which returns example responses on every request.
|
||||||
|
The example responses must be defined in the ``examples`` response property of the OpenAPI specification.
|
||||||
|
Your API specification file is not required to have any ``operationId``.
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ connexion run your_api.yaml --mock=all -v
|
||||||
|
|||||||
Reference in New Issue
Block a user