Let's take this sample :
url(r'^test[/]$', test_handler, { 'emitter_format': 'xml' }),
With the following handler :
class testHandler(BaseHandler):
allowed_methods = ('GET',)
def read(self, request):
return {'element': 'I want to be first', 'test': 'No way', }
The result when calling the API will be :
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="utf-8"?>
<response><test>No way</test><element>I want to be first</element></response>
I don't want to get the 'No way' in first place, so how to define an order priority on the elements returned ?