Hi All, Has anyone had any success creating a RESTful web api using Terascript? How did you do it?
I'd like to be able to create/modify HTTP responses directly on the server side before returning. More specifically, so that I can use different HTTP response codes for different things (e.g., when information being requested via ajax doesn't exist, return HTTP 404.) I'm having trouble finding anything in the documentation relating to that, and from what I can tell, it's not readily available in TeraScribe either (though mine is admittedly old, 6.2.3.) The closest thing available is using <@THROWERROR> to invoke the error results, but then api clients still have to scan the response body, if provided, to see what the actual reason was, as the status of the HTTP response will be 200 or 500, I'm not sure which exactly. That solution is not really ideal. Any thoughts or suggestions on this? Thanks, -Ian ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
