@@ -311,14 +311,14 @@ Response Formats
311
311
312
312
The default response format is json.
313
313
314
- If you add the ``dicttoxml .py`` module you can request XML formatted
314
+ If you add the ``dicttoxml2 .py`` module you can request XML formatted
315
315
data using the header ``Accept: application/xml`` in your
316
316
request. Both output formats are similar in structure.
317
317
318
- ``dicttoxml .py`` should be installed in the Python install directory,
319
- or the file can be added to the Roundup installation directory long
320
- ide ``rest.py``. It can also be enabled on a per tracker basis by
321
- adding ``dicttoxml .py`` to the lib directory in your tracker home (you
318
+ ``dicttoxml2 .py`` should be installed in the Python install directory,
319
+ or the file can be added to the Roundup installation directory along
320
+ side ``rest.py``. It can also be enabled on a per tracker basis by
321
+ adding ``dicttoxml2 .py`` to the lib directory in your tracker home (you
322
322
may need to create the directory). Then this can be added to
323
323
`interfaces.py`_ to enable xml::
324
324
@@ -334,14 +334,18 @@ The rest interface accepts the http accept header and can include
334
334
way to specify alternate acceptable response formats.
335
335
336
336
To make testing from the browser easier, you can also append the
337
- extension `.json` or `.xml` to the path component of the url. This
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
339
it takes priority over any accept headers.
340
340
341
341
The rest interface returns status 406 if you use an unrecognized
342
342
extension. You will also get a 406 status if none of the entries in
343
343
the accept header are available or if the accept header is invalid.
344
344
345
+ 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``.
348
+
345
349
346
350
General Guidelines
347
351
------------------
0 commit comments