1. Georg Brandl
  2. sphinx-contrib


Adam Lowry  committed e83d6e6

Add JSON Parameter along side form and query parameter

  • Participants
  • Parent commits 4607e19
  • Branches default

Comments (0)

Files changed (2)

File httpdomain/doc/index.rst

View file
    :mimetype:`application/x-www-form-urlencoded` or
+``jsonparameter``, ``jsonparam``, ``json``
+   Description of a parameter passed by request content body, encoded in
+   :mimetype:`application/json`.
 ``statuscode``, ``status``, ``code``
    Description of response status code.

File httpdomain/sphinxcontrib/httpdomain.py

View file
                      names=('queryparameter', 'queryparam', 'qparam', 'query')),
         GroupedField('formparameter', label='Form Parameters',
                      names=('formparameter', 'formparam', 'fparam', 'form')),
+        GroupedField('jsonparameter', label='Json Parameters',
+                     names=('jsonparameter', 'jsonparam', 'json')),
         GroupedField('statuscode', label='Status Codes',
                      names=('statuscode', 'status', 'code'))