<commit_before># PostComments API

<a name="index"></a>
## GET /api/v1/postComments
Gets all postComments
### Params
Yes :
 * **max** (int) : Max results in output, defaults to 10
 * **offset** (int) : Offset for results, defaults to 0

*Ex : /api/v1/postComments?max=5&offset=2*
### Authentication
Yes : **HTTP BASIC**
### Output
```json
[
  {
    "id": 1,
    "name": "male",
    "description": null,
    "dateCreated": "2016-02-01T16:50:58Z"
  },
  {
    "id": 2,
    "name": "female",
    "description": null,
    "dateCreated": "2016-02-01T16:50:58Z"
  }
]
```
<a name="show"></a>
## GET /api/v1/postComments/:id
Gets a postComment by its Id
### Params
None (Id is included in URL)
### Authentication
Yes : **HTTP BASIC**
### Output
```json
{
  "id": 1,
  "name": "male",
  "description": null,
  "dateCreated": "2016-02-01T16:50:58Z"
}
```

<a name="delete"></a>
## DELETE /api/v1/postComments/:id
Deletes an existing comment
### Params
None (Id is included in URL)
### Authentication
Yes : **HTTP BASIC**
### Output
HTTP 204 No Content
<commit_msg>Documentation pour les API autour des commentaires<commit_after># PostComments API

<a name="show"></a>
## GET /api/v1/postComments/:id
Gets a postComment by its Id
### Params
None (Id is included in URL)
### Authentication
Yes : **HTTP BASIC**
### Output
```json
{
  "id": 1,
  "name": null,
  "description": "Non dolorum itaque in est fuga qui aliquam. Culpa eum molestiae eveniet aut blanditiis.",
  "postId": 1,
  "creator": {
    "id": 4,
    "username": "<NAME>",
    "imageUrl": "http://www.pixnfit.com/image/show/58"
  },
  "dateCreated": "2016-02-08T16:01:59Z"
}
```

<a name="votes"></a>
## GET /api/v1/postComments/:id/votes
Gets votes for a comment
### Params
None (Id is included in URL)
### Authentication
Yes : **HTTP BASIC**
### Output
```json
```

<a name="addVote"></a>
## POST /api/v1/postComments/:id/votes
Adds a vote for a comment
### Params
```json
{
    "vote": true
}
```
### Authentication
Yes : **HTTP BASIC**
### Output
HTTP 201 Created
```json
{
  "id": 1047,
  "vote": true,
  "postCommentId": 1,
  "creator": {
    "id": 1,
    "username": "<NAME>",
    "imageUrl": null
  },
  "dateCreated": "2016-02-08T16:01:59Z"
}
```
{'fraction_non_alphanumeric': 0.20117806977797917, 'fraction_numerical': 0.046216583597643864, 'mean_word_length': 3.8741721854304636, 'pattern_counts': {'":': 30, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '5180975', 'n_tokens_mistral': 927, 'n_tokens_neox': 839, 'n_words': 230}