<commit_before># doSelect
An Image API for the needs of the Internet.(_This is a solution submission for an Internship test_)
## Usage:
<br>
### GENERAL INFORMATION
I highly recommend using [POSTMAN](https://www.getpostman.com/). Makes the whole experience very seamless.
All the image Requests are to be made to the endpoint `/api/images`. The HTTP requests used in this app are `POST`, `GET`, `DELETE`, `PATCH`
<br>
### Generating a Token
Before being able to make any requests, you will need to generate a token. Make a `GET` Request to the endpoint `/api/images/gen_token` to first generate a unique token. This token needs to be used with all the requests. (I understand that this is not safe for prod, but I needed a way to generate a token)
The response will be in the form of usual JSON:
<br>
```
{<commit_msg>Fixed broken Postman link in ReadMe<commit_after># doSelect
An Image API for the needs of the Internet.(_This is a solution submission for an Internship test_)
## Usage:
### GENERAL INFORMATION
I highly recommend using [POSTMAN](https://www.getpostman.com/). Makes the whole experience very seamless.
All the image Requests are to be made to the endpoint `/api/images`. The HTTP requests used in this app are `POST`, `GET`, `DELETE`, `PATCH`
<br>
### Generating a Token
Before being able to make any requests, you will need to generate a token. Make a `GET` Request to the endpoint `/api/images/gen_token` to first generate a unique token. This token needs to be used with all the requests. (I understand that this is not safe for prod, but I needed a way to generate a token)
The response will be in the form of usual JSON:
<br>
```
{
{'fraction_non_alphanumeric': 0.0822746521476104, 'fraction_numerical': 0.0, 'mean_word_length': 4.422950819672131, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '389938', 'n_tokens_mistral': 456, 'n_tokens_neox': 443, 'n_words': 262}