All URIs are relative to https://www.metaculus.com
| Method | HTTP request | Description |
|---|---|---|
| comments_create | POST /api2/comments/ | |
| comments_destroy | DELETE /api2/comments/{id}/ | |
| comments_like_create | POST /api2/comments/{id}/like/ | |
| comments_list | GET /api2/comments/ | |
| comments_partial_update | PATCH /api2/comments/{id}/ | |
| comments_report_create | POST /api2/comments/{id}/report/ | |
| comments_retrieve | GET /api2/comments/{id}/ | |
| comments_update | PUT /api2/comments/{id}/ |
crate::models::Comment comments_create(comment)
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| comment | Comment | [required] |
basicAuth, cookieAuth, tokenAuth
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
comments_destroy(id)
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | i32 | A unique integer value identifying this comment. | [required] |
(empty response body)
basicAuth, cookieAuth, tokenAuth
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Comment comments_like_create(id, comment)
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | i32 | A unique integer value identifying this comment. | [required] | |
| comment | Comment | [required] |
basicAuth, cookieAuth, tokenAuth
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::PaginatedCommentList comments_list(author, created_time__gt, created_time__lt, cursor, id, limit, order_by, question)
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| author | Option<i32> | |||
| created_time__gt | Option<String> | |||
| created_time__lt | Option<String> | |||
| cursor | Option<String> | The pagination cursor value. | ||
| id | Option<i32> | |||
| limit | Option<i32> | Number of results to return per page. | ||
| order_by | Option<String> | Which field to use when ordering the results. | ||
| question | Option<i32> |
crate::models::PaginatedCommentList
basicAuth, cookieAuth, tokenAuth
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CommentUpdate comments_partial_update(id, patched_comment_update)
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | i32 | A unique integer value identifying this comment. | [required] | |
| patched_comment_update | Option<PatchedCommentUpdate> |
basicAuth, cookieAuth, tokenAuth
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Comment comments_report_create(id, comment)
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | i32 | A unique integer value identifying this comment. | [required] | |
| comment | Comment | [required] |
basicAuth, cookieAuth, tokenAuth
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CommentChildren comments_retrieve(id)
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | i32 | A unique integer value identifying this comment. | [required] |
crate::models::CommentChildren
basicAuth, cookieAuth, tokenAuth
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::CommentUpdate comments_update(id, comment_update)
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | i32 | A unique integer value identifying this comment. | [required] | |
| comment_update | CommentUpdate | [required] |
basicAuth, cookieAuth, tokenAuth
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]