replaced endpoint for get automaiton by id

This commit is contained in:
hannathkadher
2025-03-14 12:09:14 +04:00
parent 7ae3e4a933
commit 2a065efc0e
3 changed files with 10 additions and 4 deletions

View File

@ -133,10 +133,13 @@ class SceneApi {
// }
//automation details
static Future<RoutineDetailsModel> getAutomationDetails(String automationId) async {
static Future<RoutineDetailsModel> getAutomationDetails(
String automationId, String projectId) async {
try {
final response = await _httpService.get(
path: ApiEndpoints.getAutomationDetails.replaceAll('{automationId}', automationId),
path: ApiEndpoints.getAutomationDetails
.replaceAll('{automationId}', automationId)
.replaceAll('{projectId}', projectId),
showServerMessage: false,
expectedResponseModel: (json) => RoutineDetailsModel.fromMap(json),
);