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.
336
336
To make testing from the browser easier, you can also append the
337
337
extension ``.json`` or ``.xml`` to the path component of the url. This
338
338
will 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.
340
343
341
344
The rest interface returns status 406 if you use an unrecognized
342
345
extension. You will also get a 406 status if none of the entries in
343
346
the accept header are available or if the accept header is invalid.
344
347
345
348
Note: ``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``.
348
350
349
351
350
352
General Guidelines
You can’t perform that action at this time.
0 commit comments