getSpace method

  1. @deprecated
Future<Space> getSpace({
  1. required String spaceKey,
  2. List<String>? expand,
})

Deprecated, use Confluence's v2 API.

Returns a space. This includes information like the name, description, and permissions, but not the content in the space.

Permissions required: 'View' permission for the space.

Implementation

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