0
Vote

Use HTTP "Accept" Headers for Format

description

The engine should interogate the Action header of an incomming HTTP request to see what format to return it in.  Ones that the engine would recognize:
"application/json","text/html","text/xml"
 
(Should we use a custom mime type??  "application/extjson"  ??
 
So, use this:   http://website/rest/user/5  (Accept="application/json")
instead of http://website/rest/user/5?fmt=json

comments