def post(uri, body)
      body = body.to_json
      @url = $base_url + uri
      @response = RestClient.post(@url, body, headers={'X-Risk-Token' => $token, 'Content-Type' => 'application/json', 'Accept' => 'application/json'})
      
    rescue StandardError => e 
      @return = {}
      #@return['body'] = nil
      @return['http_code'] = e.http_code
      @return['message'] = e.message
      @return.to_json
    #ensure
    end
def post(uri, body)
      body = body.to_json
      @url = $base_url + uri
      @response = RestClient.post(@url, body, headers={'X-Risk-Token' => $token, 'Content-Type' => 'application/json', 'Accept' => 'application/json'})
      
    rescue StandardError => e 
      @return = {}
      #@return['body'] = nil
      @return['http_code'] = e.http_code
      @return['message'] = e.message
      @return.to_json
    #ensure
    end
Here are some generic CRUD calls to the API
 The URI is the full resource path without the base URL
 'Resource' would be the same as base_key or root of the endpoint
 TODO (Maynard Black): Confirm with Kenna if this is standard and can be depended upon
 TODO (Maynard Black): Use config to set base URL and Token, find out how Kenna plans to version the API
 TODO (Maynard Black): Ask Kenna if ID's are unique accross all endpoints and do they plan on offering
       an endpoint to locate any resource by just the ID (they are not UUIDs so not likely)
 TODO (Important - Maynard Black): Refactor to return the whole response including headers
        This means updating the tests first! Then the API Browser App!
        I am currently only returning a JSON parsed body so there is no way to catch 404s and such
        UPDATE: DONE
 TODO (Maynard Black): Refactor the 2 post, put, getAllUsers, getUserById methods to return headers
 TODO (Maynard Black): Catch exceptions when hitting server, that is the only way to
       catch certain response codes (like 404) with the client I am using
 Post