Commits

Adam Lowry committed e83d6e6

Add JSON Parameter along side form and query parameter

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'))