getContentByTypeForSpace method

  1. @deprecated
Future<ContentArray> getContentByTypeForSpace({
  1. required String spaceKey,
  2. required String type,
  3. String? depth,
  4. List<String>? expand,
  5. int? start,
  6. int? limit,
})

Deprecated, use Confluence's v2 API.

Returns all content of a given type, in a space. The returned content is ordered by content ID in ascending order.

Permissions required: 'View' permission for the space. Note, the returned list will only contain content that the current user has permission to view.

Implementation

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