1. Georg Brandl
  2. sphinx-contrib


Hong Minhee  committed a09f29f Merge

Merged in RobotAdam/sphinx-contrib (pull request #25)

Add JSON Parameter option in httpdomain, one minor fix

  • Participants
  • Parent commits 81b1962, 6aeac61
  • 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'))