XMLTemplates
XMLTemplates
Time: <<DateTime(2011-10-06T17:11:30Z)>>
Drafter: Vek
Drafters Email: <<MailTo(kevin DOT mitchell AT rackspace DOT com)>>
Status: To be completed by POC
Currently, request extensions have to deserialize data, manipulate it, and reserialize it. This happens for each extension. This is generally not much of a problem for JSON data, but XML is expensive to deserialize and reserialize, and it is currently impossible to extend the XML without directly editing the serializer or writing an independent serializer.
This proposal is to establish new middleware which performs the XML serialization, and to also establish a means of creating XML templates, which can be extended by attaching slave templates to describe the extra data that an extension may wish to include.
Much of the code for this is already written, and many elements of nova-api converted over to use template-based serializers in preference to the hand-coded serializers currently utilized. This page is to document what has been done.