HTTP Domain JSON POST Parameters

38 views
Skip to first unread message

Alejandro Wainzinger

unread,
Feb 2, 2012, 12:02:04 AM2/2/12
to sphinx-dev
Hey. I'm using the HTTP Domain for documenting a REST API, and for
usual POST parameters I would do something like:

.. http:post:: myhost/resource

This method posts something.

:form someparam: This is a parameter.
:type int:

But I'm using a JSON body. Can I use an existing HTTP Domain option or
directive to get this:

JSON Parameters:
* someparam (number) -- This is a parameter.

...instead of this...

Form Parameters:
someparam (int) -- This is a parameter.

...?
Reply all
Reply to author
Forward
0 new messages