<commit_before># API wrapper

## Description

This gem is a generic client for HTTP based APIs.

## Installation

You can use this gem in your project by specifying it in your `Gemfile`:

```
gem "api"
```

or simply install it via the CLI:

```
gem install api
```

## Usage

Create your own API client my inheriting from the Api::Client class and defining all mandatory defaults attributes in a Namespace::Default module as such:

```
module ExampleApi
  class Client < Api::Client
    # Include mandatory modules
    include Api::Configurable
    include Api::Connection
    include Api::Authentication
  end

  module Default
    API_ENDPOINT = "http://example.org".freeze

    class << self

      # Include mandatory module
      include Api::DefaultOptions

      def api_endpoint
        API_ENDPOINT
      end

    end
 end<commit_msg>readme: change gem name for rubygems api → apii<commit_after># API wrapper

## Description

This gem is a generic client for HTTP based APIs.

## Installation

You can use this gem in your project by specifying it in your `Gemfile`:

```
gem "apii"
```

or simply install it via the CLI:

```
gem install apii
```

## Usage

Create your own API client my inheriting from the Api::Client class and defining all mandatory defaults attributes in a Namespace::Default module as such:

```
module ExampleApi
  class Client < Api::Client
    # Include mandatory modules
    include Api::Configurable
    include Api::Connection
    include Api::Authentication
  end

  module Default
    API_ENDPOINT = "http://example.org".freeze

    class << self

      # Include mandatory module
      include Api::DefaultOptions

      def api_endpoint
        API_ENDPOINT
      end

    end
 end
{'fraction_non_alphanumeric': 0.07076566125290024, 'fraction_numerical': 0.0, 'mean_word_length': 3.3017456359102244, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, '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': '583529', 'n_tokens_mistral': 488, 'n_tokens_neox': 465, 'n_words': 201}