<commit_before>### Customing Resource URLs

If you have domain-specific URLs you can modify them individually per Resource.

If we have a resource that requires a URL structure like so:

```
https://myapi.com/api/v1/product?id=123&country=GB
```

Which would require:

* The URL to accept an `id` query parameter
* An additional `country` parameter

Then we can customise our `ProductResource` like so:

```python
class Product(BaseResource):

    class Meta(BaseResource.Meta):
        name = 'Product'
        identifier = 'slug'
        attributes = (
            'slug',
        )
        methods = (
            'get',
        )

    @staticmethod
    def get_single_resource_url(url, uid, **kwargs):
        """
        Our customised URL.
        """
        return '{}/products/?id={}&country={}'.format(
            url,
            uid,
            kwargs.get('country')
        )
```

When we go to use the resource in our client we simply call the `get_method` with additional parameters:

```python
client.get_product(uid=1, country='GB')
>>> <Product | 1>
```

### Response formats

TODO<commit_msg>spelling<commit_after>## Customising Resource URLs

If you have domain-specific URLs you can modify them individually per Resource.

If we have a resource that requires a URL structure like so:

```
https://myapi.com/api/v1/product?id=123&country=GB
```

Which would require:

* The URL to accept an `id` query parameter
* An additional `country` parameter

Then we can customise our `ProductResource` like so:

```python
class Product(BaseResource):

    class Meta(BaseResource.Meta):
        name = 'Product'
        identifier = 'slug'
        attributes = (
            'slug',
        )
        methods = (
            'get',
        )

    @staticmethod
    def get_single_resource_url(url, uid, **kwargs):
        """
        Our customised URL.
        """
        return '{}/products/?id={}&country={}'.format(
            url,
            uid,
            kwargs.get('country')
        )
```

When we go to use the resource in our client we simply call the `get_method` with additional parameters:

```python
client.get_product(uid=1, country='GB')
>>> <Product | 1>
```

## Response formats

TODO
{'fraction_non_alphanumeric': 0.11796488068437641, 'fraction_numerical': 0.005402971634398919, 'mean_word_length': 2.56661316211878, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '1151269', 'n_tokens_mistral': 650, 'n_tokens_neox': 625, 'n_words': 207}