getContentVersion method
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(','),
},
));
}