Commits

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

Comments (0)

Files changed (2)

httpdomain/doc/index.rst

    :mimetype:`application/x-www-form-urlencoded` or
    :mimetype:`multipart/form-data`.
 
+``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.
 

httpdomain/sphinxcontrib/httpdomain.py

                      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',
                      rolename='statuscode',
                      names=('statuscode', 'status', 'code'))