<commit_before># Plug & Play RestApiBundle

ApiBundle creating REST api based on your models. Just give your models and use your auto-generated endpoints.

## Get Started

Bundle works on Doctrine ORM based models. Bundle purpose is generate a REST Api in fastest and easy way.

## Installation

Step 1: Update composer.json

```
composer require mertoksuz/api-bundle "1.0.2"
```

Step 2: Register Classes to `AppKernel`

```php
[...]
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle($this),
new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
new MertOksuz\ApiBundle\MertOksuzApiBundle(),
```

Step 3: Update your `config.yml` for `FOSRestBundle` and `MertOksuzApiBundle`

```yml
fos_rest:
    format_listener:
        rules:
            - { path: '^/', priorities: ['json', 'xml'], fallback_format: 'json', prefer_extension: false }
```

```yml
mert_oksuz_api:
    entities:
        app.model:
            classes:
                model: AppBundle\Entity\Model
```

#### Note<commit_msg>Readme Update<commit_after># Plug & Play RestApiBundle

ApiBundle creating REST api based on your models. Just give your models and use your auto-generated endpoints.

## Get Started

Bundle works on Doctrine ORM based models. Bundle purpose is generate a REST Api in fastest and easy way.

## Installation

Step 1: Update composer.json

```
composer require mertoksuz/api-bundle
```

Step 2: Register Classes to `AppKernel`

```php
[...]
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle($this),
new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
new MertOksuz\ApiBundle\MertOksuzApiBundle(),
```

Step 3: Update your `config.yml` for `FOSRestBundle` and `MertOksuzApiBundle`

```yml
fos_rest:
    format_listener:
        rules:
            - { path: '^/', priorities: ['json', 'xml'], fallback_format: 'json', prefer_extension: false }
```

```yml
mert_oksuz_api:
    entities:
        app.model:
            classes:
                model: AppBundle\Entity\Model
```

#### Note
{'fraction_non_alphanumeric': 0.11839530332681017, 'fraction_numerical': 0.004403131115459882, 'mean_word_length': 3.8117647058823527, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6826881', 'n_tokens_mistral': 688, 'n_tokens_neox': 645, 'n_words': 189}