getVersion method

Future<Version> getVersion({
  1. required String id,
  2. String? expand,
})

Returns a project version.

This operation can be accessed anonymously.

Permissions required: Browse projects project permission for the project containing the version.

Implementation

Future<Version> getVersion({required String id, String? expand}) async {
  return Version.fromJson(await _client.send(
    'get',
    'rest/api/3/version/{id}',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      if (expand != null) 'expand': expand,
    },
  ));
}