feat: add search media
This commit is contained in:
@@ -5,11 +5,16 @@ meta {
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseUrl}}/categories
|
||||
url: {{baseUrl}}/categories/:id
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 40
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
@@ -5,13 +5,13 @@ meta {
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/categories?type=media
|
||||
url: {{baseUrl}}/categories?type=playlist
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
type: media
|
||||
type: playlist
|
||||
}
|
||||
|
||||
settings {
|
||||
|
||||
@@ -5,15 +5,15 @@ meta {
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/media/filters
|
||||
url: {{baseUrl}}/media/filters?search=ش
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
search: ش
|
||||
~categories: 1
|
||||
~tags: relax,sleep
|
||||
~search:
|
||||
}
|
||||
|
||||
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: موجهای دریا
|
||||
order: 1
|
||||
is_active: 1
|
||||
~theme_id: 1
|
||||
image: @file(C:\Users\vada\Downloads\bale-border.png)
|
||||
~video: @file()
|
||||
~sound: @file()
|
||||
|
||||
@@ -6,14 +6,25 @@ meta {
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/scenes/:id
|
||||
body: none
|
||||
body: multipartForm
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
id:
|
||||
id: 1
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
~name: موجهای دریا
|
||||
~theme_id: 1
|
||||
~order: 1
|
||||
~is_active: 1
|
||||
~image: @file()
|
||||
~video: @file()
|
||||
~sound: @file()
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ body:multipart-form {
|
||||
description: انگیزشی از موزیک های هایپ است
|
||||
~order:
|
||||
~image_id:
|
||||
~image: @file()
|
||||
~is_active:
|
||||
}
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@ meta {
|
||||
seq: 11
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{baseUrl}}//music-categories/:id
|
||||
body: json
|
||||
post {
|
||||
url: {{baseUrl}}/music-categories/:id
|
||||
body: multipartForm
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
@@ -21,7 +21,12 @@ body:json {
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
name: لوبیا
|
||||
description: Updated description
|
||||
~order:
|
||||
~image_id:
|
||||
~image: @file()
|
||||
~is_active:
|
||||
}
|
||||
|
||||
settings {
|
||||
|
||||
Reference in New Issue
Block a user