getSpaceProperty method

  1. @deprecated
Future<SpaceProperty> getSpaceProperty({
  1. required String spaceKey,
  2. required String key,
  3. List<String>? expand,
})

Deprecated, use Confluence's v2 API.

Returns a space property.

Permissions required: ‘View’ permission for the space.

Implementation

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