mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-06 12:27:45 +00:00
13
docs/cli.rst
13
docs/cli.rst
@@ -4,12 +4,6 @@ For convenience Connexion provides a command-line interface
|
|||||||
(CLI). This interface aims to be a starting point in developing or
|
(CLI). This interface aims to be a starting point in developing or
|
||||||
testing OpenAPI specifications with Connexion.
|
testing OpenAPI specifications with Connexion.
|
||||||
|
|
||||||
The available commands are:
|
|
||||||
|
|
||||||
- ``connexion run``
|
|
||||||
|
|
||||||
All commands can run with -h or --help to list more information.
|
|
||||||
|
|
||||||
Running an OpenAPI specification
|
Running an OpenAPI specification
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
@@ -22,12 +16,11 @@ To run your specification, execute in your shell:
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ connexion run your_api.yaml --stub --debug
|
$ connexion run your_api.yaml --stub
|
||||||
|
|
||||||
This command will tell Connexion to run the ``your_api.yaml``
|
This command will tell Connexion to run the ``your_api.yaml``
|
||||||
specification file attaching a stub operation (``--stub``) to the
|
specification file attaching a stub operation (``--stub``) to the
|
||||||
unavailable operations/functions of your API and in debug mode
|
unavailable operations/functions of your API, which will return a ``501 Not Implemented`` response.
|
||||||
(``--debug``).
|
|
||||||
|
|
||||||
The basic usage of this command is:
|
The basic usage of this command is:
|
||||||
|
|
||||||
@@ -58,4 +51,4 @@ Your API specification file is not required to have any ``operationId``.
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ connexion run your_api.yaml --mock=all -v
|
$ connexion run your_api.yaml --mock=all
|
||||||
|
|||||||
Reference in New Issue
Block a user