Skip to content

Commit

Permalink
Add pythonic_params to routing docs (#1394)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee authored Jul 8, 2021
1 parent e57e72b commit 3810da7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,17 @@ Without this sanitation it would e.g. be impossible to implement an
`OData
<http://www.odata.org>`_ API.

You can also convert *CamelCase* parameters to *snake_case* automatically using `pythonic_params` option:

.. code-block:: python
app = connexion.FlaskApp(__name__)
app.add_api('api.yaml', ..., pythonic_params=True)
With this option enabled, Connexion firstly converts *CamelCase* names
to *snake_case*. Secondly it looks to see if the name matches a known built-in
and if it does it appends an underscore to the name.

Parameter Variable Converters
-----------------------------

Expand Down

0 comments on commit 3810da7

Please sign in to comment.