feat: add search media
This commit is contained in:
@@ -5,11 +5,16 @@ meta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
delete {
|
delete {
|
||||||
url: {{baseUrl}}/categories
|
url: {{baseUrl}}/categories/:id
|
||||||
body: none
|
body: none
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
id: 40
|
||||||
|
}
|
||||||
|
|
||||||
settings {
|
settings {
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ meta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get {
|
get {
|
||||||
url: {{baseUrl}}/categories?type=media
|
url: {{baseUrl}}/categories?type=playlist
|
||||||
body: none
|
body: none
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
params:query {
|
params:query {
|
||||||
type: media
|
type: playlist
|
||||||
}
|
}
|
||||||
|
|
||||||
settings {
|
settings {
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ meta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get {
|
get {
|
||||||
url: {{baseUrl}}/media/filters
|
url: {{baseUrl}}/media/filters?search=ش
|
||||||
body: none
|
body: none
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
params:query {
|
params:query {
|
||||||
|
search: ش
|
||||||
~categories: 1
|
~categories: 1
|
||||||
~tags: relax,sleep
|
~tags: relax,sleep
|
||||||
~search:
|
|
||||||
}
|
}
|
||||||
|
|
||||||
settings {
|
settings {
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
meta {
|
||||||
|
name: media-search
|
||||||
|
type: http
|
||||||
|
seq: 10
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/media/search?per_page=20&page=1
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
per_page: 20
|
||||||
|
page: 1
|
||||||
|
~search: ش
|
||||||
|
~categories: 1,2
|
||||||
|
~subcategories: 1
|
||||||
|
~durations: 5-10,10-30
|
||||||
|
~tags: relax,sleep
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
docs {
|
||||||
|
Paginated search/filter results. Same filters as /media:
|
||||||
|
- search, categories (ids, comma), subcategories (ids, comma),
|
||||||
|
durations (e.g. 1-2,2-5,5-10,10-30,30-60,60-120,other), tags (names, comma)
|
||||||
|
- pagination: page, per_page (default 20, max 100)
|
||||||
|
Use /media/filters for the filter chips/options.
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
meta {
|
||||||
|
name: get themes
|
||||||
|
type: http
|
||||||
|
seq: 7
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/themes
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
}
|
||||||
|
|
||||||
|
docs {
|
||||||
|
Returns the color themes (blue, pink, green, orange, purple) a scene can use.
|
||||||
|
Each theme has key, name and a `colors` map. Assign one to a scene via theme_id.
|
||||||
|
}
|
||||||
@@ -14,6 +14,7 @@ body:multipart-form {
|
|||||||
name: موجهای دریا
|
name: موجهای دریا
|
||||||
order: 1
|
order: 1
|
||||||
is_active: 1
|
is_active: 1
|
||||||
|
~theme_id: 1
|
||||||
image: @file(C:\Users\vada\Downloads\bale-border.png)
|
image: @file(C:\Users\vada\Downloads\bale-border.png)
|
||||||
~video: @file()
|
~video: @file()
|
||||||
~sound: @file()
|
~sound: @file()
|
||||||
|
|||||||
@@ -6,14 +6,25 @@ meta {
|
|||||||
|
|
||||||
post {
|
post {
|
||||||
url: {{baseUrl}}/scenes/:id
|
url: {{baseUrl}}/scenes/:id
|
||||||
body: none
|
body: multipartForm
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
params:path {
|
params:path {
|
||||||
id:
|
id: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
body:multipart-form {
|
||||||
|
~name: موجهای دریا
|
||||||
|
~theme_id: 1
|
||||||
|
~order: 1
|
||||||
|
~is_active: 1
|
||||||
|
~image: @file()
|
||||||
|
~video: @file()
|
||||||
|
~sound: @file()
|
||||||
}
|
}
|
||||||
|
|
||||||
settings {
|
settings {
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,9 +13,10 @@ post {
|
|||||||
body:multipart-form {
|
body:multipart-form {
|
||||||
name: انگیزشی
|
name: انگیزشی
|
||||||
description: انگیزشی از موزیک های هایپ است
|
description: انگیزشی از موزیک های هایپ است
|
||||||
~order:
|
~order:
|
||||||
~image_id:
|
~image_id:
|
||||||
~is_active:
|
~image: @file()
|
||||||
|
~is_active:
|
||||||
}
|
}
|
||||||
|
|
||||||
settings {
|
settings {
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ meta {
|
|||||||
seq: 11
|
seq: 11
|
||||||
}
|
}
|
||||||
|
|
||||||
put {
|
post {
|
||||||
url: {{baseUrl}}//music-categories/:id
|
url: {{baseUrl}}/music-categories/:id
|
||||||
body: json
|
body: multipartForm
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -21,7 +21,12 @@ body:json {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body:multipart-form {
|
body:multipart-form {
|
||||||
|
name: لوبیا
|
||||||
description: Updated description
|
description: Updated description
|
||||||
|
~order:
|
||||||
|
~image_id:
|
||||||
|
~image: @file()
|
||||||
|
~is_active:
|
||||||
}
|
}
|
||||||
|
|
||||||
settings {
|
settings {
|
||||||
|
|||||||
Reference in New Issue
Block a user