Feature request/Bookends server: raw output w/o download

A place for users to ask each other questions, make suggestions, and discuss Bookends.
Post Reply
cboulanger
Posts: 59
Joined: Mon Jan 28, 2008 6:18 pm

Feature request/Bookends server: raw output w/o download

Post by cboulanger »

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!
Jon
Site Admin
Posts: 10296
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: Feature request/Bookends server: raw output w/o download

Post by Jon »

I'll look into it.

Jon
Sonny Software
cboulanger
Posts: 59
Joined: Mon Jan 28, 2008 6:18 pm

Re: Feature request/Bookends server: raw output w/o download

Post by cboulanger »

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.
Jon
Site Admin
Posts: 10296
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: Feature request/Bookends server: raw output w/o download

Post by Jon »

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
Post Reply