feat
This commit is contained in:
@@ -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
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ meta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get {
|
get {
|
||||||
url: {{baseUrl}}/media/
|
url: {{baseUrl}}/media/1
|
||||||
body: none
|
body: none
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-2
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user