node-restful icon indicating copy to clipboard operation
node-restful copied to clipboard

Multiple Response formats

Open baugarten opened this issue 12 years ago • 1 comments

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

baugarten avatar Feb 07 '13 00:02 baugarten

I think this is done for html...

I need to document this though

baugarten avatar Mar 12 '13 18:03 baugarten