box-open-sdk 0.1.1

Generated Box API SDK for Rust (community, unofficial).
Documentation
<!-- Generated by box-gantry. DO NOT EDIT. -->
# CommentsManager

Reach these methods through the `comments` field on `client::Client`.

## list_file

`GET /files/{file_id}/comments`

| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `fields` | query | `Vec<String>` | no |
| `limit` | query | `i64` | no |
| `offset` | query | `i64` | no |

**Returns:** `Comments`

Paginated — `list_file(...)` returns a paginator you drive with `.next().await`, threading the cursor for you. See the [pagination guide](../pagination.md).

## get

`GET /comments/{comment_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `comment_id` | path | `String` | yes |
| `fields` | query | `Vec<String>` | no |

**Returns:** `CommentFull`

## update

`PUT /comments/{comment_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `comment_id` | path | `String` | yes |
| `fields` | query | `Vec<String>` | no |

**Request body** (`application/json`): `CommentUpdateRequest`

**Returns:** `CommentFull`

## delete

`DELETE /comments/{comment_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `comment_id` | path | `String` | yes |

**Returns:** no content

## create

`POST /comments`

| Parameter | In | Type | Required |
|---|---|---|---|
| `fields` | query | `Vec<String>` | no |

**Request body** (`application/json`): `CommentCreateRequest`

**Returns:** `CommentFull`