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!
Feature request/Bookends server: raw output w/o download
-
- Posts: 59
- Joined: Mon Jan 28, 2008 6:18 pm
Re: Feature request/Bookends server: raw output w/o download
I'll look into it.
Jon
Sonny Software
Jon
Sonny Software
-
- Posts: 59
- Joined: Mon Jan 28, 2008 6:18 pm
Re: Feature request/Bookends server: raw output w/o download
Thanks Jon.
I would be using the "head" and "foot" parameters to surround the output with the necessary HTML. Of course, this is not ideal, since this stuff should ideally be in the output format itself. But that would require much more complex changes (some kind of templating system). For now, I try to implement it within the existing server features.
I would be using the "head" and "foot" parameters to surround the output with the necessary HTML. Of course, this is not ideal, since this stuff should ideally be in the output format itself. But that would require much more complex changes (some kind of templating system). For now, I try to implement it within the existing server features.
Re: Feature request/Bookends server: raw output w/o download
Please write to me directly with an example of how you'd like a simple (single) returned reference to look (as it is now, and how you'd like it).
Jon
Sonny Software
Jon
Sonny Software