diff --git a/breath exercise/breathing colors/delete breathing color.bru b/breath exercise/breathing colors/delete breathing color.bru new file mode 100644 index 0000000..367d5eb --- /dev/null +++ b/breath exercise/breathing colors/delete breathing color.bru @@ -0,0 +1,19 @@ +meta { + name: delete breathing color + type: http + seq: 4 +} + +delete { + url: {{baseUrl}}/breathing-colors/:id + body: none + auth: inherit +} + +params:path { + id: 1 +} + +settings { + encodeUrl: true +} diff --git a/breath exercise/breathing colors/folder.bru b/breath exercise/breathing colors/folder.bru new file mode 100644 index 0000000..9e2aedb --- /dev/null +++ b/breath exercise/breathing colors/folder.bru @@ -0,0 +1,7 @@ +meta { + name: breathing colors +} + +auth { + mode: inherit +} diff --git a/breath exercise/breathing colors/get breathing colors.bru b/breath exercise/breathing colors/get breathing colors.bru new file mode 100644 index 0000000..d4d473d --- /dev/null +++ b/breath exercise/breathing colors/get breathing colors.bru @@ -0,0 +1,21 @@ +meta { + name: get breathing colors + type: http + seq: 1 +} + +get { + url: {{baseUrl}}/breathing-colors + body: none + auth: inherit +} + +settings { + encodeUrl: true +} + +docs { + Palette the app shows when creating a breathing template. Each item has + a `colors` array (one hex = solid, several = gradient). The user picks one + and sends its colors as `colors` on /breathing-templates. +} diff --git a/breath exercise/breathing colors/store breathing color.bru b/breath exercise/breathing colors/store breathing color.bru new file mode 100644 index 0000000..187331a --- /dev/null +++ b/breath exercise/breathing colors/store breathing color.bru @@ -0,0 +1,25 @@ +meta { + name: store breathing color + type: http + seq: 2 +} + +post { + url: {{baseUrl}}/breathing-colors + body: json + auth: inherit +} + +body:json { + { + "name": "بنفش", + "colors": ["#6829DD", "#1A50CC"], + "order": 1, + "is_active": true + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/breath exercise/breathing colors/update breathing color.bru b/breath exercise/breathing colors/update breathing color.bru new file mode 100644 index 0000000..93d16de --- /dev/null +++ b/breath exercise/breathing colors/update breathing color.bru @@ -0,0 +1,28 @@ +meta { + name: update breathing color + type: http + seq: 3 +} + +put { + url: {{baseUrl}}/breathing-colors/:id + body: json + auth: inherit +} + +params:path { + id: 1 +} + +body:json { + { + "name": "بنفش", + "colors": ["#6829DD", "#1A50CC"], + "is_active": true + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/breath exercise/edit-template.bru b/breath exercise/edit-template.bru index 20ceb61..6770ef2 100644 --- a/breath exercise/edit-template.bru +++ b/breath exercise/edit-template.bru @@ -26,7 +26,8 @@ body:json { "breath_hold":5, "duration":45, "description":"asdsadaasdas", - "image_id":3 + "image_id":3, + "colors":["#6829DD","#1A50CC"] } } diff --git a/breath exercise/store-template.bru b/breath exercise/store-template.bru index fe20fc8..28611ba 100644 --- a/breath exercise/store-template.bru +++ b/breath exercise/store-template.bru @@ -15,6 +15,8 @@ body:multipart-form { inhale: 8 exhale: 3 breath_hold: 4 + ~colors[]: #6829DD + ~colors[]: #1A50CC } settings { diff --git a/media/media-search.bru b/media/media-search.bru index ab4923e..181c6e1 100644 --- a/media/media-search.bru +++ b/media/media-search.bru @@ -5,7 +5,7 @@ meta { } get { - url: {{baseUrl}}/media/search?per_page=20&page=1 + url: {{baseUrl}}/media/search?per_page=20&page=1&durations=20-30 body: none auth: inherit } @@ -13,10 +13,10 @@ get { params:query { per_page: 20 page: 1 + durations: 20-30 ~search: ش ~categories: 1,2 ~subcategories: 1 - ~durations: 5-10,10-30 ~tags: relax,sleep } diff --git a/settings/store scenes.bru b/settings/store scenes.bru index 79eb75f..b955f45 100644 --- a/settings/store scenes.bru +++ b/settings/store scenes.bru @@ -14,6 +14,7 @@ body:multipart-form { name: موج‌های دریا order: 1 is_active: 1 + ~is_premium: 1 ~theme_id: 1 image: @file(C:\Users\vada\Downloads\bale-border.png) ~video: @file() diff --git a/settings/update scene.bru b/settings/update scene.bru index 7dfdd4e..4a12fcd 100644 --- a/settings/update scene.bru +++ b/settings/update scene.bru @@ -19,6 +19,7 @@ body:multipart-form { ~theme_id: 1 ~order: 1 ~is_active: 1 + ~is_premium: 1 ~image: @file() ~video: @file() ~sound: @file()