feat: add colors
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
meta {
|
||||
name: breathing colors
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
@@ -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.
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -26,7 +26,8 @@ body:json {
|
||||
"breath_hold":5,
|
||||
"duration":45,
|
||||
"description":"asdsadaasdas",
|
||||
"image_id":3
|
||||
"image_id":3,
|
||||
"colors":["#6829DD","#1A50CC"]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@ body:multipart-form {
|
||||
inhale: 8
|
||||
exhale: 3
|
||||
breath_hold: 4
|
||||
~colors[]: #6829DD
|
||||
~colors[]: #1A50CC
|
||||
}
|
||||
|
||||
settings {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -19,6 +19,7 @@ body:multipart-form {
|
||||
~theme_id: 1
|
||||
~order: 1
|
||||
~is_active: 1
|
||||
~is_premium: 1
|
||||
~image: @file()
|
||||
~video: @file()
|
||||
~sound: @file()
|
||||
|
||||
Reference in New Issue
Block a user