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