<commit_before># RE-REST
Simple REST Api for our new release engine hotness.

[![Build Status](https://api.travis-ci.org/RHInception/re-rest.png)](https://travis-ci.org/RHInception/re-rest/)

## Running From Source
```bash
$ PYTHONPATH=src/ REREST_CONFIG=example-settings.json python src/rerest/app.py
```

## Unittests

## Configuration

## URLs
### /api/v0/*$PROJECT*/deployment/

#### PUT
* **Response Type**: json
* **Response Example**: ```{"status": "created", "id": 1}```
* **Input Format**: None
* **Inputs**: None


## What's Happening

1. User requests a new job via the REST endpoint
2. The REST server creates a temporary response queue.
3. The REST server sends a message on the bus to exchange *releaseengine* on the topic *job.create*.
4. The REST server waits on the temporary response queue for a response.
5. Once a response is returned the REST service responds to the user with the job id.<commit_msg>Some more README.md updates.<commit_after># RE-REST
Simple REST Api for our new release engine hotness.

[![Build Status](https://api.travis-ci.org/RHInception/re-rest.png)](https://travis-ci.org/RHInception/re-rest/)

## Running From Source
### With Flask
```bash
$ PYTHONPATH=src/ REREST_CONFIG=example-settings.json python src/rerest/app.py
```

### With gunicorn
```bash
$ PYTHONPATH=`pwd`/src gunicorn -e REREST_CONFIG=example-settings.json --access-logfile access.log --error-logfile=error.log rerest.app:app
```

## Unittests
Use *nosetests -v --with-cover --cover-min-percentage=80 --cover-package=rerest test/* from the main directory to execute unittests.

## Configuration

## URLs
### /api/v0/*$PROJECT*/deployment/

#### PUT
* **Response Type**: json
* **Response Example**: ```{"status": "created", "id": 1}```
* **Input Format**: None
* **Inputs**: None


## What's Happening

1. User requests a new job via the REST endpoint
2. The REST server creates a temporary response queue.
3. The REST server sends a message on the bus to exchange *releaseengine* on the topic *job.create*.
4. The REST server waits on the temporary response queue for a response.
5. Once a response is returned the REST service responds to the user with the job id.
{'fraction_non_alphanumeric': 0.14292279411764705, 'fraction_numerical': 0.007352941176470588, 'mean_word_length': 4.41542288557214, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3239944', 'n_tokens_mistral': 715, 'n_tokens_neox': 676, 'n_words': 245}