Forum Discussion
bmgriner
15 years agoFrequent Contributor
May I ask when or if this will be supported in the near future? Is it even in the pipeline?
I just spent a few hours trying to use the work around by setting the docroot and creating a onRequest script and sending static content back in the response. This was going well until I realized that it was only handling GET requests. The POST requests don't even go into the onRequest script. I put a log.info in there and when I do a POST, it does not write out to the script log file nor does it write any error out to the error log.
Currently, all I need to be able to do is send back static data for any HTTP methods. It would be nice in the future to be able to dynamically generate the responses for rest calls, but getting the above to work would be a great start.
I just spent a few hours trying to use the work around by setting the docroot and creating a onRequest script and sending static content back in the response. This was going well until I realized that it was only handling GET requests. The POST requests don't even go into the onRequest script. I put a log.info in there and when I do a POST, it does not write out to the script log file nor does it write any error out to the error log.
Currently, all I need to be able to do is send back static data for any HTTP methods. It would be nice in the future to be able to dynamically generate the responses for rest calls, but getting the above to work would be a great start.