feat:add new

This commit is contained in:
2026-06-03 20:14:20 +03:30
parent b243ec3c0b
commit 0f4e86c9e1
41 changed files with 663 additions and 8 deletions
+19
View File
@@ -0,0 +1,19 @@
meta {
name: delete scene
type: http
seq: 4
}
delete {
url: {{baseUrl}}/scenes/:id
body: none
auth: inherit
}
params:path {
id:
}
settings {
encodeUrl: true
}
+8
View File
@@ -0,0 +1,8 @@
meta {
name: settings
seq: 21
}
auth {
mode: inherit
}
+15
View File
@@ -0,0 +1,15 @@
meta {
name: get scenes
type: http
seq: 1
}
get {
url: {{baseUrl}}/scenes
body: none
auth: inherit
}
settings {
encodeUrl: true
}
+15
View File
@@ -0,0 +1,15 @@
meta {
name: scene-settings
type: http
seq: 5
}
get {
url: {{baseUrl}}/scene-settings
body: none
auth: inherit
}
settings {
encodeUrl: true
}
+25
View File
@@ -0,0 +1,25 @@
meta {
name: store scenes
type: http
seq: 2
}
post {
url: {{baseUrl}}/scenes
body: multipartForm
auth: inherit
}
body:multipart-form {
name: موج‌های دریا
order: 1
is_active: 1
image: @file(C:\Users\vada\Downloads\bale-border.png)
~video: @file()
~sound: @file()
}
settings {
encodeUrl: true
timeout: 0
}
+25
View File
@@ -0,0 +1,25 @@
meta {
name: update scene-settings
type: http
seq: 6
}
put {
url: {{baseUrl}}/scene-settings
body: json
auth: inherit
}
body:json {
{
"active_scene_id" : 3,
"scene_volume" : 40,
"background_play_seconds" : 30,
"video_enabled" : false
}
}
settings {
encodeUrl: true
timeout: 0
}
+19
View File
@@ -0,0 +1,19 @@
meta {
name: update scene
type: http
seq: 3
}
post {
url: {{baseUrl}}/scenes/:id
body: none
auth: inherit
}
params:path {
id:
}
settings {
encodeUrl: true
}