Recordless Rest Is Great

It seems this page was lost in the rearranging of files. I pulled it out
of storage

I often use the record-less rest calls to test things. I didn't see it on
my blog, so here's an example so I can find it in the future.\

var instance = "dev40379";
var requestBody = {
short_description: "test incident"
var restMessage = new sn_ws.RESTMessageV2();
restMessage.setBasicAuth("slack", "slack");
restMessage.setEndpoint("http://"+ instance +"");
var response = restMessage.execute();
var error = response.haveError();
var errorCode = response.getErrorCode();
var errorMsg = response.getErrorMessage();
} else {

var headerVal = response.getHeader("Content-Type");
var headers = response.getHeaders();
var queryString = response.getQueryString();
var statusCode = response.getStatusCode();
var responseBody = response.getBody();;;
* *** Script: 201
* *** Script: {"result":{"parent":"","..."}}