getHistoryForContent method

  1. @deprecated
Future<ContentHistory> getHistoryForContent({
  1. required String id,
  2. List<String>? expand,
})

Deprecated, use Confluence's v2 API.

Returns the most recent update for a piece of content.

Permissions required: Permission to view the content.

Implementation

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