<commit_before>raml-tester-proxy [![Build Status](https://travis-ci.org/nidi3/raml-tester-proxy.svg?branch=master)](https://travis-ci.org/nidi3/raml-tester-proxy)
=================
A standalone proxy/mock that tests if requests/responses are compliant with a given RAML.

##Usage as proxy
Example: If there is a service running at localhost:8080, start the proxy with

```
java -jar raml-tester-standalone.jar -t localhost:8080 -r file://<path to raml> -s.
```

and access the service using localhost:8099.

Every request or response that does not match the RAML definition will be logged.

##Run asynchronously
If the proxy is started with the -a flag, it runs asynchronously.
You can send commands to it the following way:

```
java -jar raml-tester-standalone.jar <command>
```

These commands are supported:

- ping: Ping the proxy
- stop: Stop the proxy
- reload: Reload the RAML file
- reports: Get the reports of the RAML violations
- usage: Get information about usage of RAML elements<commit_msg>better readme<commit_after>raml-tester-proxy [![Build Status](https://travis-ci.org/nidi3/raml-tester-proxy.svg?branch=master)](https://travis-ci.org/nidi3/raml-tester-proxy)
=================
A standalone proxy/mock that tests if requests/responses are compliant with a given RAML.

To see all options, execute

```
java -jar raml-tester-standalone.jar
```

##Usage as proxy
Example: If there is a service running at localhost:8080, start the proxy with

```
java -jar raml-tester-standalone.jar -t localhost:8080 -r file://<path to raml> -s.
```

and access the service using localhost:8099.

Every request or response that does not match the RAML definition will be logged.

##Run asynchronously
If the proxy is started with the -a flag, it runs asynchronously.
You can send commands to it the following way:

```
java -jar raml-tester-standalone.jar <command>
```

These commands are supported:

- ping: Ping the proxy
- stop: Stop the proxy
- reload: Reload the RAML file
- reports: Get the reports of the RAML violations
- usage: Get information about usage of RAML elements
{'fraction_non_alphanumeric': 0.11270983213429256, 'fraction_numerical': 0.01342925659472422, 'mean_word_length': 4.404145077720207, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3239321', 'n_tokens_mistral': 671, 'n_tokens_neox': 623, 'n_words': 252}