<commit_before>ruby_rest_request_gem
=====================

A ruby gem to send REST request or calls to any API and get the response<commit_msg>better documentation in readme<commit_after>ruby_rest_request_gem
=====================

A ruby gem to send REST request or calls to any API and get the response

Installation:
gem install rest_reques

Usage: 

@req = RestRequest.new

url = 'http://api.example.com/products/'

data = {
      "name"          => "#{$name}",
      "description"   => "#{$description}"
}.to_json


response = @req.send_request("POST", url, data)
response = @req.send_request("PUT", url, data)
response = @req.send_request("GET", url)
response = @req.send_request("DELETE", url)

@req.print_json(response)
{'fraction_non_alphanumeric': 0.17307692307692307, 'fraction_numerical': 0.0, 'mean_word_length': 4.832, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3534925', 'n_tokens_mistral': 232, 'n_tokens_neox': 218, 'n_words': 66}