feat: add search media

This commit is contained in:
2026-06-15 14:26:41 +03:30
parent e645fe19c4
commit ef6649309e
9 changed files with 90 additions and 13 deletions
+6 -1
View File
@@ -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
}
+2 -2
View File
@@ -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 {
+2 -2
View File
@@ -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 {
+34
View File
@@ -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.
}