getContentVersions method

  1. @deprecated
Future<VersionArray> getContentVersions({
  1. required String id,
  2. int? start,
  3. int? limit,
  4. List<String>? expand,
})

Deprecated, use Confluence's v2 API.

Returns the versions for a piece of content in descending order.

Permissions required: Permission to view the content. If the content is a blog post, 'View' permission for the space is required.

Implementation

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