mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 21:14:55 +00:00
push put api
This commit is contained in:
@ -71,7 +71,21 @@ class SceneApi {
|
||||
}
|
||||
}
|
||||
|
||||
//deleteScene
|
||||
|
||||
//updateScene
|
||||
static updateScene(CreateSceneModel createSceneModel, String sceneId) async {
|
||||
try {
|
||||
final response = await _httpService.put(
|
||||
path: ApiEndpoints.updateScene.replaceAll('{sceneId}', sceneId),
|
||||
body: createSceneModel.toJson(sceneId),
|
||||
expectedResponseModel: (json) {
|
||||
return json;
|
||||
},
|
||||
);
|
||||
return response;
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
//deleteScene
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user