feat: add feature like

This commit is contained in:
2026-05-24 23:20:01 +03:30
parent 8d32a9220f
commit 5db86c179a
7 changed files with 108 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
meta {
name: check
type: http
seq: 4
}
post {
url: {{baseUrl}}/saves/check
body: multipartForm
auth: inherit
}
body:multipart-form {
type:
id:
}
settings {
encodeUrl: true
timeout: 0
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: delete | unlike
type: http
seq: 3
}
post {
url: {{baseUrl}}/saves/unsave
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}
+8
View File
@@ -0,0 +1,8 @@
meta {
name: like
seq: 19
}
auth {
mode: inherit
}
+20
View File
@@ -0,0 +1,20 @@
meta {
name: get-like-items
type: http
seq: 2
}
get {
url: {{baseUrl}}/likes/my-liked
body: none
auth: inherit
}
params:query {
~type: music
}
settings {
encodeUrl: true
timeout: 0
}
+21
View File
@@ -0,0 +1,21 @@
meta {
name: like item
type: http
seq: 1
}
post {
url: {{baseUrl}}/likes/like
body: multipartForm
auth: inherit
}
body:multipart-form {
type: music @contentType(music,media)
id: 1
}
settings {
encodeUrl: true
timeout: 0
}
+21
View File
@@ -0,0 +1,21 @@
meta {
name: toggle
type: http
seq: 5
}
post {
url: {{baseUrl}}/likes/toggle
body: multipartForm
auth: inherit
}
body:multipart-form {
type: music @contentType(music,media,breathing-template)
id: 1
}
settings {
encodeUrl: true
timeout: 0
}