Feature request/Bookends server: raw output w/o download
Posted: Fri Dec 09, 2011 3:51 pm
Hello Jon,
would it be difficult to add an option to the Bookends Server REST API to return the raw output, but without the "download file" headers. Something like "SendToFile=1", but not triggering the browser to save the output in a file. Or, alternatively, an option which removes all HTML markup from the response.
Background is that I am trying to write a unAPI Format that would itself create HTML pages including <head> and <body>, and this doesn't work if the response already contains the HTML markup. Also, this would also benefit my JSON output style (or any other 'raw' style) by removing the necessity of stripping HTML from it before parsing it.
Since it seems to me that this would require a very small change on your side, I hope you can implement this easily for the next release. I will happily test any Beta version.
Thanks!
would it be difficult to add an option to the Bookends Server REST API to return the raw output, but without the "download file" headers. Something like "SendToFile=1", but not triggering the browser to save the output in a file. Or, alternatively, an option which removes all HTML markup from the response.
Background is that I am trying to write a unAPI Format that would itself create HTML pages including <head> and <body>, and this doesn't work if the response already contains the HTML markup. Also, this would also benefit my JSON output style (or any other 'raw' style) by removing the necessity of stripping HTML from it before parsing it.
Since it seems to me that this would require a very small change on your side, I hope you can implement this easily for the next release. I will happily test any Beta version.
Thanks!