From 0f4e86c9e182e30f2d5d139e14faad6ebd85923b Mon Sep 17 00:00:00 2001 From: AmirmahdiNourkazemi Date: Wed, 3 Jun 2026 20:14:20 +0330 Subject: [PATCH] feat:add new --- chat topics/delete chat topic.bru | 19 ++++++++++++ chat topics/folder.bru | 8 +++++ chat topics/get chat topic.bru | 19 ++++++++++++ chat topics/get chat topics.bru | 15 +++++++++ chat topics/store chat topic.bru | 25 +++++++++++++++ chat topics/update chat topic.bru | 28 +++++++++++++++++ .../delete background sound.bru | 19 ++++++++++++ insight timer/background sounds/folder.bru | 8 +++++ .../get background sound.bru | 19 ++++++++++++ .../get background sounds.bru | 15 +++++++++ .../store background sound.bru | 24 ++++++++++++++ .../update background sound.bru | 28 +++++++++++++++++ .../bell sounds/delete bell sound.bru | 19 ++++++++++++ insight timer/bell sounds/folder.bru | 8 +++++ insight timer/bell sounds/get bell sound.bru | 19 ++++++++++++ insight timer/bell sounds/get bell sounds.bru | 15 +++++++++ .../bell sounds/store bell sound.bru | 24 ++++++++++++++ .../bell sounds/update bell sound.bru | 28 +++++++++++++++++ insight timer/folder.bru | 8 +++++ insight timer/presets/delete preset.bru | 19 ++++++++++++ insight timer/presets/folder.bru | 8 +++++ insight timer/presets/get preset.bru | 19 ++++++++++++ insight timer/presets/get presets.bru | 15 +++++++++ insight timer/presets/store preset.bru | 31 +++++++++++++++++++ insight timer/presets/update preset.bru | 28 +++++++++++++++++ insight timer/timer options.bru | 16 ++++++++++ media/category/edit category.bru | 17 ++++++++-- media/category/store category.bru | 2 ++ media/store-media.bru | 4 +-- media/sub-category/add sub-category.bru | 1 + media/sub-category/edit sub-categories.bru | 3 +- media/update-media.bru | 2 ++ settings/delete scene.bru | 19 ++++++++++++ settings/folder.bru | 8 +++++ settings/get scenes.bru | 15 +++++++++ settings/scene-settings.bru | 15 +++++++++ settings/store scenes.bru | 25 +++++++++++++++ settings/update scene-settings.bru | 25 +++++++++++++++ settings/update scene.bru | 19 ++++++++++++ track/music/update music (image).bru | 27 ++++++++++++++++ track/music/upload music.bru | 5 +-- 41 files changed, 663 insertions(+), 8 deletions(-) create mode 100644 chat topics/delete chat topic.bru create mode 100644 chat topics/folder.bru create mode 100644 chat topics/get chat topic.bru create mode 100644 chat topics/get chat topics.bru create mode 100644 chat topics/store chat topic.bru create mode 100644 chat topics/update chat topic.bru create mode 100644 insight timer/background sounds/delete background sound.bru create mode 100644 insight timer/background sounds/folder.bru create mode 100644 insight timer/background sounds/get background sound.bru create mode 100644 insight timer/background sounds/get background sounds.bru create mode 100644 insight timer/background sounds/store background sound.bru create mode 100644 insight timer/background sounds/update background sound.bru create mode 100644 insight timer/bell sounds/delete bell sound.bru create mode 100644 insight timer/bell sounds/folder.bru create mode 100644 insight timer/bell sounds/get bell sound.bru create mode 100644 insight timer/bell sounds/get bell sounds.bru create mode 100644 insight timer/bell sounds/store bell sound.bru create mode 100644 insight timer/bell sounds/update bell sound.bru create mode 100644 insight timer/folder.bru create mode 100644 insight timer/presets/delete preset.bru create mode 100644 insight timer/presets/folder.bru create mode 100644 insight timer/presets/get preset.bru create mode 100644 insight timer/presets/get presets.bru create mode 100644 insight timer/presets/store preset.bru create mode 100644 insight timer/presets/update preset.bru create mode 100644 insight timer/timer options.bru create mode 100644 settings/delete scene.bru create mode 100644 settings/folder.bru create mode 100644 settings/get scenes.bru create mode 100644 settings/scene-settings.bru create mode 100644 settings/store scenes.bru create mode 100644 settings/update scene-settings.bru create mode 100644 settings/update scene.bru create mode 100644 track/music/update music (image).bru diff --git a/chat topics/delete chat topic.bru b/chat topics/delete chat topic.bru new file mode 100644 index 0000000..7c013e0 --- /dev/null +++ b/chat topics/delete chat topic.bru @@ -0,0 +1,19 @@ +meta { + name: delete chat topic + type: http + seq: 5 +} + +delete { + url: {{baseUrl}}/chat-topics/:id + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true +} diff --git a/chat topics/folder.bru b/chat topics/folder.bru new file mode 100644 index 0000000..4542fc5 --- /dev/null +++ b/chat topics/folder.bru @@ -0,0 +1,8 @@ +meta { + name: chat topics + seq: 23 +} + +auth { + mode: inherit +} diff --git a/chat topics/get chat topic.bru b/chat topics/get chat topic.bru new file mode 100644 index 0000000..1e5f6fa --- /dev/null +++ b/chat topics/get chat topic.bru @@ -0,0 +1,19 @@ +meta { + name: get chat topic + type: http + seq: 3 +} + +get { + url: {{baseUrl}}/chat-topics/:id + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true +} diff --git a/chat topics/get chat topics.bru b/chat topics/get chat topics.bru new file mode 100644 index 0000000..5d6be2b --- /dev/null +++ b/chat topics/get chat topics.bru @@ -0,0 +1,15 @@ +meta { + name: get chat topics + type: http + seq: 1 +} + +get { + url: {{baseUrl}}/chat-topics + body: none + auth: inherit +} + +settings { + encodeUrl: true +} diff --git a/chat topics/store chat topic.bru b/chat topics/store chat topic.bru new file mode 100644 index 0000000..0f2580b --- /dev/null +++ b/chat topics/store chat topic.bru @@ -0,0 +1,25 @@ +meta { + name: store chat topic + type: http + seq: 2 +} + +post { + url: {{baseUrl}}/chat-topics + body: json + auth: inherit +} + +body:json { + { + "title": "هیچ راه واحدی برای مدیتیشن وجود ندارد", + "description": null, + "order": 1, + "is_active": true + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/chat topics/update chat topic.bru b/chat topics/update chat topic.bru new file mode 100644 index 0000000..d39e6c0 --- /dev/null +++ b/chat topics/update chat topic.bru @@ -0,0 +1,28 @@ +meta { + name: update chat topic + type: http + seq: 4 +} + +put { + url: {{baseUrl}}/chat-topics/:id + body: json + auth: inherit +} + +params:path { + id: 1 +} + +body:json { + { + "title": "هیچ راه واحدی برای مدیتیشن وجود ندارد", + "order": 2, + "is_active": true + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/insight timer/background sounds/delete background sound.bru b/insight timer/background sounds/delete background sound.bru new file mode 100644 index 0000000..bc0ed9b --- /dev/null +++ b/insight timer/background sounds/delete background sound.bru @@ -0,0 +1,19 @@ +meta { + name: delete background sound + type: http + seq: 5 +} + +delete { + url: {{baseUrl}}/background-sounds/:id + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true +} diff --git a/insight timer/background sounds/folder.bru b/insight timer/background sounds/folder.bru new file mode 100644 index 0000000..82b9153 --- /dev/null +++ b/insight timer/background sounds/folder.bru @@ -0,0 +1,8 @@ +meta { + name: background sounds + seq: 4 +} + +auth { + mode: inherit +} diff --git a/insight timer/background sounds/get background sound.bru b/insight timer/background sounds/get background sound.bru new file mode 100644 index 0000000..e703b0f --- /dev/null +++ b/insight timer/background sounds/get background sound.bru @@ -0,0 +1,19 @@ +meta { + name: get background sound + type: http + seq: 3 +} + +get { + url: {{baseUrl}}/background-sounds/:id + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true +} diff --git a/insight timer/background sounds/get background sounds.bru b/insight timer/background sounds/get background sounds.bru new file mode 100644 index 0000000..f69d5f4 --- /dev/null +++ b/insight timer/background sounds/get background sounds.bru @@ -0,0 +1,15 @@ +meta { + name: get background sounds + type: http + seq: 1 +} + +get { + url: {{baseUrl}}/background-sounds + body: none + auth: inherit +} + +settings { + encodeUrl: true +} diff --git a/insight timer/background sounds/store background sound.bru b/insight timer/background sounds/store background sound.bru new file mode 100644 index 0000000..e6598cd --- /dev/null +++ b/insight timer/background sounds/store background sound.bru @@ -0,0 +1,24 @@ +meta { + name: store background sound + type: http + seq: 2 +} + +post { + url: {{baseUrl}}/background-sounds + body: multipartForm + auth: inherit +} + +body:multipart-form { + name: جنگل + order: 1 + is_active: 1 + sound: @file(C:\Users\vada\Downloads\forest.mp3) + ~image: @file() +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/insight timer/background sounds/update background sound.bru b/insight timer/background sounds/update background sound.bru new file mode 100644 index 0000000..1ccd974 --- /dev/null +++ b/insight timer/background sounds/update background sound.bru @@ -0,0 +1,28 @@ +meta { + name: update background sound + type: http + seq: 4 +} + +post { + url: {{baseUrl}}/background-sounds/:id + body: multipartForm + auth: inherit +} + +params:path { + id: 1 +} + +body:multipart-form { + name: دریا + order: 2 + is_active: 1 + ~sound: @file() + ~image: @file() +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/insight timer/bell sounds/delete bell sound.bru b/insight timer/bell sounds/delete bell sound.bru new file mode 100644 index 0000000..eea0c3c --- /dev/null +++ b/insight timer/bell sounds/delete bell sound.bru @@ -0,0 +1,19 @@ +meta { + name: delete bell sound + type: http + seq: 5 +} + +delete { + url: {{baseUrl}}/bell-sounds/:id + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true +} diff --git a/insight timer/bell sounds/folder.bru b/insight timer/bell sounds/folder.bru new file mode 100644 index 0000000..25bec2e --- /dev/null +++ b/insight timer/bell sounds/folder.bru @@ -0,0 +1,8 @@ +meta { + name: bell sounds + seq: 3 +} + +auth { + mode: inherit +} diff --git a/insight timer/bell sounds/get bell sound.bru b/insight timer/bell sounds/get bell sound.bru new file mode 100644 index 0000000..a2fdcf6 --- /dev/null +++ b/insight timer/bell sounds/get bell sound.bru @@ -0,0 +1,19 @@ +meta { + name: get bell sound + type: http + seq: 3 +} + +get { + url: {{baseUrl}}/bell-sounds/:id + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true +} diff --git a/insight timer/bell sounds/get bell sounds.bru b/insight timer/bell sounds/get bell sounds.bru new file mode 100644 index 0000000..cdb2c57 --- /dev/null +++ b/insight timer/bell sounds/get bell sounds.bru @@ -0,0 +1,15 @@ +meta { + name: get bell sounds + type: http + seq: 1 +} + +get { + url: {{baseUrl}}/bell-sounds + body: none + auth: inherit +} + +settings { + encodeUrl: true +} diff --git a/insight timer/bell sounds/store bell sound.bru b/insight timer/bell sounds/store bell sound.bru new file mode 100644 index 0000000..59e9dff --- /dev/null +++ b/insight timer/bell sounds/store bell sound.bru @@ -0,0 +1,24 @@ +meta { + name: store bell sound + type: http + seq: 2 +} + +post { + url: {{baseUrl}}/bell-sounds + body: multipartForm + auth: inherit +} + +body:multipart-form { + name: بلوک چوبی + order: 1 + is_active: 1 + sound: @file(C:\Users\vada\Downloads\BELLDoor_Doorbell 6 (ID 2365)_BigSoundBank.com.wav) + ~image: @file() +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/insight timer/bell sounds/update bell sound.bru b/insight timer/bell sounds/update bell sound.bru new file mode 100644 index 0000000..626e225 --- /dev/null +++ b/insight timer/bell sounds/update bell sound.bru @@ -0,0 +1,28 @@ +meta { + name: update bell sound + type: http + seq: 4 +} + +post { + url: {{baseUrl}}/bell-sounds/:id + body: multipartForm + auth: inherit +} + +params:path { + id: 1 +} + +body:multipart-form { + name: ساکیا (Sakya) + order: 2 + is_active: 1 + ~sound: @file() + ~image: @file() +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/insight timer/folder.bru b/insight timer/folder.bru new file mode 100644 index 0000000..90258a9 --- /dev/null +++ b/insight timer/folder.bru @@ -0,0 +1,8 @@ +meta { + name: insight timer + seq: 22 +} + +auth { + mode: inherit +} diff --git a/insight timer/presets/delete preset.bru b/insight timer/presets/delete preset.bru new file mode 100644 index 0000000..384c085 --- /dev/null +++ b/insight timer/presets/delete preset.bru @@ -0,0 +1,19 @@ +meta { + name: delete preset + type: http + seq: 5 +} + +delete { + url: {{baseUrl}}/timer-presets/:id + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true +} diff --git a/insight timer/presets/folder.bru b/insight timer/presets/folder.bru new file mode 100644 index 0000000..be680b8 --- /dev/null +++ b/insight timer/presets/folder.bru @@ -0,0 +1,8 @@ +meta { + name: presets + seq: 2 +} + +auth { + mode: inherit +} diff --git a/insight timer/presets/get preset.bru b/insight timer/presets/get preset.bru new file mode 100644 index 0000000..6de8e91 --- /dev/null +++ b/insight timer/presets/get preset.bru @@ -0,0 +1,19 @@ +meta { + name: get preset + type: http + seq: 3 +} + +get { + url: {{baseUrl}}/timer-presets/:id + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true +} diff --git a/insight timer/presets/get presets.bru b/insight timer/presets/get presets.bru new file mode 100644 index 0000000..2bc3221 --- /dev/null +++ b/insight timer/presets/get presets.bru @@ -0,0 +1,15 @@ +meta { + name: get presets + type: http + seq: 1 +} + +get { + url: {{baseUrl}}/timer-presets + body: none + auth: inherit +} + +settings { + encodeUrl: true +} diff --git a/insight timer/presets/store preset.bru b/insight timer/presets/store preset.bru new file mode 100644 index 0000000..082524a --- /dev/null +++ b/insight timer/presets/store preset.bru @@ -0,0 +1,31 @@ +meta { + name: store preset + type: http + seq: 2 +} + +post { + url: {{baseUrl}}/timer-presets + body: json + auth: inherit +} + +body:json { + { + "name": "تایمر برای یوگا روزانه", + "duration_seconds": 150, + "start_bell_id": 1, + "end_bell_id": 2, + "interval_bell_id": 1, + "interval_seconds": 20, + "interval_repeat": 7, + "background_sound_id": 1, + "background_image_id": 1, + "volume": 16 + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/insight timer/presets/update preset.bru b/insight timer/presets/update preset.bru new file mode 100644 index 0000000..04aec4e --- /dev/null +++ b/insight timer/presets/update preset.bru @@ -0,0 +1,28 @@ +meta { + name: update preset + type: http + seq: 4 +} + +put { + url: {{baseUrl}}/timer-presets/:id + body: json + auth: inherit +} + +params:path { + id: 1 +} + +body:json { + { + "name": "تایمر برای یوگا روزانه", + "duration_seconds": 300, + "volume": 40 + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/insight timer/timer options.bru b/insight timer/timer options.bru new file mode 100644 index 0000000..684787d --- /dev/null +++ b/insight timer/timer options.bru @@ -0,0 +1,16 @@ +meta { + name: timer options + type: http + seq: 1 +} + +get { + url: {{baseUrl}}/timer/options + body: none + auth: inherit +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/media/category/edit category.bru b/media/category/edit category.bru index 98ce5b7..0105267 100644 --- a/media/category/edit category.bru +++ b/media/category/edit category.bru @@ -4,12 +4,23 @@ meta { seq: 3 } -put { - url: {{baseUrl}}/categories - body: none +post { + url: {{baseUrl}}/categories/:id + body: multipartForm auth: inherit } +params:path { + id: 1 +} + +body:multipart-form { + name: کودکان + description: دسته‌بندی محتوای کودکان + ~icon: @file() +} + settings { encodeUrl: true + timeout: 0 } diff --git a/media/category/store category.bru b/media/category/store category.bru index 30b6232..353f995 100644 --- a/media/category/store category.bru +++ b/media/category/store category.bru @@ -12,6 +12,8 @@ post { body:multipart-form { name: کودکان + description: دسته‌بندی محتوای کودکان + ~icon: @file() } settings { diff --git a/media/store-media.bru b/media/store-media.bru index 4178597..0265c20 100644 --- a/media/store-media.bru +++ b/media/store-media.bru @@ -6,7 +6,7 @@ meta { post { url: {{baseUrl}}/media - body: json + body: multipartForm auth: inherit } @@ -16,7 +16,7 @@ body:json { "caption": "مدیتیشنی قدرتمند برای فعال‌سازی ارتعاش موفقیت، تقویت باورهای مثبت، رهایی از ترس‌ها و هماهنگ شدن با مسیر تحقق اهداف. مناسب برای افرادی که می‌خواهند با انرژی و اعتماد کامل به سمت موفقیت حرکت کنند.", "type": "video", "category_ids": [1,2], - "subcategory_ids":[1و2], + "subcategory_ids":[12], "category_name": "موفقیت و انگیزشی", "duration": 10, "file": null, diff --git a/media/sub-category/add sub-category.bru b/media/sub-category/add sub-category.bru index 99eec30..ac570d4 100644 --- a/media/sub-category/add sub-category.bru +++ b/media/sub-category/add sub-category.bru @@ -17,6 +17,7 @@ params:query { body:multipart-form { category_id: 2 name: کودک و نوجوان + description: زیرمجموعه محتوای کودک و نوجوان } settings { diff --git a/media/sub-category/edit sub-categories.bru b/media/sub-category/edit sub-categories.bru index 486db5c..d7f59ab 100644 --- a/media/sub-category/edit sub-categories.bru +++ b/media/sub-category/edit sub-categories.bru @@ -16,7 +16,8 @@ params:path { body:json { { - "category_id":2 + "category_id":2, + "description":"زیرمجموعه محتوای کودک و نوجوان" } } diff --git a/media/update-media.bru b/media/update-media.bru index 5225a6e..b1ab656 100644 --- a/media/update-media.bru +++ b/media/update-media.bru @@ -22,6 +22,8 @@ body:json { body:multipart-form { ~is_premium: true + ~image: @file() + ~image_id: 1 } settings { diff --git a/settings/delete scene.bru b/settings/delete scene.bru new file mode 100644 index 0000000..c868178 --- /dev/null +++ b/settings/delete scene.bru @@ -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 +} diff --git a/settings/folder.bru b/settings/folder.bru new file mode 100644 index 0000000..0f03376 --- /dev/null +++ b/settings/folder.bru @@ -0,0 +1,8 @@ +meta { + name: settings + seq: 21 +} + +auth { + mode: inherit +} diff --git a/settings/get scenes.bru b/settings/get scenes.bru new file mode 100644 index 0000000..62d00a5 --- /dev/null +++ b/settings/get scenes.bru @@ -0,0 +1,15 @@ +meta { + name: get scenes + type: http + seq: 1 +} + +get { + url: {{baseUrl}}/scenes + body: none + auth: inherit +} + +settings { + encodeUrl: true +} diff --git a/settings/scene-settings.bru b/settings/scene-settings.bru new file mode 100644 index 0000000..045d0b9 --- /dev/null +++ b/settings/scene-settings.bru @@ -0,0 +1,15 @@ +meta { + name: scene-settings + type: http + seq: 5 +} + +get { + url: {{baseUrl}}/scene-settings + body: none + auth: inherit +} + +settings { + encodeUrl: true +} diff --git a/settings/store scenes.bru b/settings/store scenes.bru new file mode 100644 index 0000000..2851b1e --- /dev/null +++ b/settings/store scenes.bru @@ -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 +} diff --git a/settings/update scene-settings.bru b/settings/update scene-settings.bru new file mode 100644 index 0000000..984a41f --- /dev/null +++ b/settings/update scene-settings.bru @@ -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 +} diff --git a/settings/update scene.bru b/settings/update scene.bru new file mode 100644 index 0000000..2909d4b --- /dev/null +++ b/settings/update scene.bru @@ -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 +} diff --git a/track/music/update music (image).bru b/track/music/update music (image).bru new file mode 100644 index 0000000..2da69d6 --- /dev/null +++ b/track/music/update music (image).bru @@ -0,0 +1,27 @@ +meta { + name: update music (image) + type: http + seq: 9 +} + +post { + url: {{baseUrl}}/music/:id + body: multipartForm + auth: inherit +} + +params:path { + id: 1 +} + +body:multipart-form { + _method: PUT + ~title: Ocean Wave + ~image_id: 1 + image: @file(C:\Users\vada\Downloads\cover.jpg) +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/track/music/upload music.bru b/track/music/upload music.bru index b2954a6..3f6fe2e 100644 --- a/track/music/upload music.bru +++ b/track/music/upload music.bru @@ -16,8 +16,9 @@ body:multipart-form { file: @file(C:\Users\nourk\Downloads\Music\Sepatifay.mp3) playlist_id: 2 type: public - ~duration: - ~image_id: + ~duration: + ~image_id: + ~image: @file() } settings {