File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -336,15 +336,17 @@ way to specify alternate acceptable response formats.
336336To make testing from the browser easier, you can also append the
337337extension ``.json`` or ``.xml`` to the path component of the url. This
338338will force json or xml (if supported) output. If you use an extension
339- it takes priority over any accept headers.
339+ it takes priority over any accept headers. Note the extension does not
340+ work for the ``/rest`` or ``/rest/data`` paths. In these cases it
341+ returs a 404 error. Adding the header ``Accept: application/xml``
342+ allows these paths to return xml data.
340343
341344The rest interface returns status 406 if you use an unrecognized
342345extension. You will also get a 406 status if none of the entries in
343346the accept header are available or if the accept header is invalid.
344347
345348Note: ``dicttoxml2.py`` is an updated version of ``dicttoxml.py``. If
346- you are still using Python 2.7 or 3.6, you should use
347- ``dicttoxml.py``.
349+ you are still using Python 2.7 or 3.6, you can use ``dicttoxml.py``.
348350
349351
350352General Guidelines
You can’t perform that action at this time.
0 commit comments