getWorkflowVersion method

Future<Response> getWorkflowVersion(
  1. String id,
  2. String versionId
)

Retrieve a specific workflow version

Implementation

Future<Response> getWorkflowVersion(String id, String versionId) async {
  try {
    final response = await _dio.get(
      '/workflows/$id/$versionId',
    );
    return response;
  } on DioException catch (e) {
    throw Exception('Failed to retrieve workflow version: ${e.message}');
  }
}