Hi I wanted to know if anyone has modified the restfiles example in servicestack,
so that it can return unchanged xml files from the filesystem?
In other words, act as a webserver (IIS, cassini or apache etc.) but with REST mapping that comes with servicestack.
At the moment the response is preformated and i cant see how to change that.
I just want to show my solution to my original question in case others are looking to modify the restfiles example´s behaviour. the mod allows you to return xml or other filetypes to the browser without changing the content of the file:
So basically if the incomming request is empty or has parameters then we return a filesresponse otherwise we return an HttpResult directly displaying the files content.
I hope this is useful to somebody.
Mythz: if there is something wrong in the code.. let us know. I tried to convert the example to .Net 4.0 but somewhere it breaks and the ajax file content viewing and listing part in /#!files doesnt show up. (perhaps i lost something in web.config during vs2010 conversion). Will you be releasing 4.0 compatible versions of the examples in the near future? … Thanks again for the great work