Forum Discussion

4 Replies

  • bmgriner's avatar
    bmgriner
    Frequent 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.
  • bmgriner's avatar
    bmgriner
    Frequent Contributor
    I did actually follow that guide. I'm being told in another post to try the nightly build...so I will give that a shot.
  • can you please post the sample script to mock the static response to the REST GET request