def post(endpoint, body, headers = {})
      headers = { accept: :json, content_type: :json }.merge(headers)
      @rest_resource[endpoint].post body, headers
    end
def post(endpoint, body, headers = {})
      headers = { accept: :json, content_type: :json }.merge(headers)
      @rest_resource[endpoint].post body, headers
    end
Perform a REST POST operation against the specified endpoint with the
 given data body

 @param [String] endpoint REST endpoint to use
 @param [String] body JSON data body to post
 @param [Hash] headers Optional headers to use in request
 @return [String] JSON response body