<commit_before># shrtnr<br>
**Currently in development**<br>
An open source url shortener written with express, react and a few other tools<br><br>
TODO<br>
* sign up
* logging in
* dashboard (display analytics)
* add analytics capturing
* fix webpack output during tests (low priority)<commit_msg>update README with API usage<commit_after># shrtnr<br>
**Currently in development**<br>
An open source url shortener written with express, react and a few other tools<br><br>
TODO<br>
* sign up
* logging in
* dashboard (display analytics)
* add analytics capturing
* fix webpack output during tests (low priority)

<hr>

## API usage
To post a new URL to the server post to <code>/api/v1</code> with the message body as <code>{longUrl: "ht<span>tp://</span>example.com"}</code>. The server should respond with <code>{"longUrl":"ht<span>tp://</span>example.com","shortUrl":"ht<span>tp://</span>configdomain.com/4D9a2"}</code>. An invalid URL will return <code>"{"errorMessage":"Invalid URL"}"</code>.
{'fraction_non_alphanumeric': 0.14042126379137412, 'fraction_numerical': 0.004012036108324975, 'mean_word_length': 5.835616438356165, 'pattern_counts': {'":': 3, '<': 28, '<?xml version=': 0, '>': 28, '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': '546155', 'n_tokens_mistral': 309, 'n_tokens_neox': 300, 'n_words': 111}