getContentComments method

  1. @deprecated
Future<ContentArray> getContentComments({
  1. required String id,
  2. List<String>? expand,
  3. int? parentVersion,
  4. int? start,
  5. int? limit,
  6. List<String>? location,
  7. String? depth,
})

Deprecated, use Confluence's v2 API.

Returns the comments on a piece of content.

Permissions required: 'View' permission for the space, and permission to view the content if it is a page.

Implementation

@deprecated
Future<ContentArray> getContentComments(
    {required String id,
    List<String>? expand,
    int? parentVersion,
    int? start,
    int? limit,
    List<String>? location,
    String? depth}) async {
  return ContentArray.fromJson(await _client.send(
    'get',
    'wiki/rest/api/content/{id}/child/comment',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      if (expand != null) 'expand': expand.map((e) => e).join(','),
      if (parentVersion != null) 'parentVersion': '$parentVersion',
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
      if (location != null) 'location': location.map((e) => e).join(','),
      if (depth != null) 'depth': depth,
    },
  ));
}