feat: add new route"
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
meta {
|
||||||
|
name: comment and rating (one call)
|
||||||
|
type: http
|
||||||
|
seq: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/interactions/:type/:id
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
type: media
|
||||||
|
id: 27
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"content": "این مدیتیشن فوقالعاده بود",
|
||||||
|
"stars": 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
docs {
|
||||||
|
type: music | media | playlist. At least one field is required:
|
||||||
|
- content: adds a comment
|
||||||
|
- stars: 1-5, sets/updates this user's rating
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
meta {
|
meta {
|
||||||
name: comment and like (one call)
|
name: comment and rating (one call)
|
||||||
type: http
|
type: http
|
||||||
seq: 7
|
seq: 7
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,7 @@ params:path {
|
|||||||
body:json {
|
body:json {
|
||||||
{
|
{
|
||||||
"content": "این مدیتیشن فوقالعاده بود",
|
"content": "این مدیتیشن فوقالعاده بود",
|
||||||
"like": true
|
"stars": 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -28,8 +28,7 @@ settings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
docs {
|
docs {
|
||||||
type: music | media | playlist. Body fields are all optional but at least one is required:
|
type: music | media | playlist. At least one field is required:
|
||||||
- content: adds a comment
|
- content: adds a comment
|
||||||
- like: true (like) / false (unlike)
|
- stars: 1-5, sets/updates this user's rating
|
||||||
- toggle_like: true (flip current like state)
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
meta {
|
||||||
|
name: comment and rating (one call)
|
||||||
|
type: http
|
||||||
|
seq: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/interactions/:type/:id
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
type: media
|
||||||
|
id: 27
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"content": "این مدیتیشن فوقالعاده بود",
|
||||||
|
"stars": 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
docs {
|
||||||
|
type: music | media | playlist. At least one field is required:
|
||||||
|
- content: adds a comment
|
||||||
|
- stars: 1-5, sets/updates this user's rating
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user