node-restful
node-restful copied to clipboard
Multiple Response formats
Should respond to a GET or POST parameter for format=json,xml,html
HTML responses will rely on express's internal templating and render templates from a default directory, which will be a parameter in model instantiation i.e. /api/resourcename/index.html, detail.html, new.html, edit.html, possibly too with put.html, delete.html to confirm updates or deletes, maybe there is a use case.
HTML responses will also open up the need for new routes, i.e. id/new id/edit
These routes are optional
I think this is done for html...
I need to document this though