mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 07:54:54 +00:00
updated endpoint for getting automation by id
This commit is contained in:
@ -119,11 +119,12 @@ class SceneApi {
|
||||
|
||||
//automation details
|
||||
static Future<SceneDetailsModel> getAutomationDetails(
|
||||
String automationId) async {
|
||||
String automationId, String projectId) async {
|
||||
try {
|
||||
final response = await _httpService.get(
|
||||
path: ApiEndpoints.getAutomationDetails
|
||||
.replaceAll('{automationId}', automationId),
|
||||
.replaceAll('{automationId}', automationId)
|
||||
.replaceAll('{projectId}', projectId),
|
||||
showServerMessage: false,
|
||||
expectedResponseModel: (json) => SceneDetailsModel.fromJson(json),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user