django-rest-framework-xml icon indicating copy to clipboard operation
django-rest-framework-xml copied to clipboard

Create a TemplateXMLRender

Open Otoru opened this issue 5 years ago • 1 comments

There are cases when there is a need for an API that returns a specific XML format. FreeSwitch integrations via XML-CURL for example.

For such purposes, it would be interesting to have XML templates that could be dynamically rendered, similar to TemplateHTMLRender.

If the project members are in agreement, I am willing to work on this new functionality.

Otoru avatar Nov 09 '19 22:11 Otoru

I hacked my way into a copied version of this project to achieve that, but a supported standard way would be nice... What I made was a DictRenderer that would convert the dict keys to XML tags, and the values would be the content... I can make a fork with this work if you want to see it

marco-silva0000 avatar Dec 12 '19 15:12 marco-silva0000