<commit_before># chat-dotnet-core

Playground for server side dotnet core programming.

## Getting Started

```sh 
cd ChatApp.Web
dotnet run
```

Hit the displayed server's url on your browser to be moved to the API's swagger UI.
From there it is possible to test out certain requests.

## Authentication
```
POST /v1/auth/
```
No parameters are required. The second time you should get the JWT data.

Use the token received in any request that requires it by setting the header:
```
Authorization Bearer somebigggggggggggggggggtoken
```

## Test Authentication
```
GET /v1/user
```

## Test Authorization
```
GET /v1/message
```<commit_msg>readme: api prefix in routes<commit_after># chat-dotnet-core

Playground for server side dotnet core programming.

## Getting Started

```sh 
cd ChatApp.Web
dotnet run
```

Hit the displayed server's url on your browser to be moved to the API's swagger UI.
From there it is possible to test out certain requests.

## Authentication
```
POST /api/v1/auth/
```
No parameters are required. The second time you should get the JWT data.

Use the token received in any request that requires it by setting the header:
```
Authorization Bearer somebigggggggggggggggggtoken
```

## Test Authentication
```
GET /api/v1/user
```

## Test Authorization
```
GET /api/v1/message
```
{'fraction_non_alphanumeric': 0.09472880061115355, 'fraction_numerical': 0.004583651642475172, 'mean_word_length': 4.32520325203252, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '2663946', 'n_tokens_mistral': 413, 'n_tokens_neox': 390, 'n_words': 170}