getContentVersion method

  1. @deprecated
Future<Version> getContentVersion({
  1. required String id,
  2. required int versionNumber,
  3. List<String>? expand,
})

Deprecated, use Confluence's v2 API.

Returns a version for a piece of content.

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

Implementation

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