This commit is contained in:
2026-06-13 17:04:47 +03:30
parent 86f63f92e0
commit 9323df1e02
4 changed files with 42 additions and 5 deletions
+35
View File
@@ -0,0 +1,35 @@
meta {
name: comment and like (one call)
type: http
seq: 7
}
post {
url: {{baseUrl}}/interactions/:type/:id
body: json
auth: inherit
}
params:path {
type: media
id: 27
}
body:json {
{
"content": "این مدیتیشن فوق‌العاده بود",
"like": true
}
}
settings {
encodeUrl: true
timeout: 0
}
docs {
type: music | media | playlist. Body fields are all optional but at least one is required:
- content: adds a comment
- like: true (like) / false (unlike)
- toggle_like: true (flip current like state)
}
+2 -1
View File
@@ -11,7 +11,7 @@ get {
} }
params:path { params:path {
id: 1 id: 27
} }
body:text { body:text {
@@ -23,4 +23,5 @@ body:text {
settings { settings {
encodeUrl: true encodeUrl: true
timeout: 0
} }
+2 -2
View File
@@ -5,7 +5,7 @@ meta {
} }
get { get {
url: {{baseUrl}}/media/ url: {{baseUrl}}/media/1
body: none body: none
auth: inherit auth: inherit
} }
@@ -13,7 +13,7 @@ get {
params:query { params:query {
~categories: 1 ~categories: 1
~tags: relax,sleep ~tags: relax,sleep
~search: ~search:
~count: 10 ~count: 10
} }
+3 -2
View File
@@ -11,8 +11,9 @@ post {
} }
body:multipart-form { body:multipart-form {
type: playlist @contentType(music,media,breathing-template) type: media @contentType(music,media,breathing-template)
id: 1 id: 27
~is_saved: true
} }
settings { settings {