feat: add comment more

This commit is contained in:
2026-05-20 15:53:00 +03:30
parent 3b14752f2f
commit b1dfd144fb
9 changed files with 105 additions and 7 deletions
@@ -1,20 +1,21 @@
meta { meta {
name: get ratings of user name: Get all comments type by id
type: http type: http
seq: 2 seq: 2
} }
get { get {
url: {{baseUrl}}/ratings/:music/:id/user url: {{baseUrl}}/comments/:type/:id
body: none body: none
auth: inherit auth: inherit
} }
params:path { params:path {
music: type: media
id: id:
} }
settings { settings {
encodeUrl: true encodeUrl: true
timeout: 0
} }
+21
View File
@@ -0,0 +1,21 @@
meta {
name: delete comment
type: http
seq: 3
}
delete {
url: {{baseUrl}}/comments/:type/:id
body: none
auth: inherit
}
params:path {
type:
id:
}
settings {
encodeUrl: true
timeout: 0
}
+8
View File
@@ -0,0 +1,8 @@
meta {
name: comment
seq: 16
}
auth {
mode: inherit
}
+25
View File
@@ -0,0 +1,25 @@
meta {
name: store | update comment
type: http
seq: 1
}
post {
url: {{baseUrl}}/comments/:type/:id
body: multipartForm
auth: inherit
}
params:path {
type: music
id: 1
}
body:multipart-form {
content: das ist schon
}
settings {
encodeUrl: true
timeout: 0
}
+2 -1
View File
@@ -19,7 +19,7 @@ body:json {
"category_name": "موفقیت و انگیزشی", "category_name": "موفقیت و انگیزشی",
"duration": 10, "duration": 10,
"file": null, "file": null,
"image_id": "28",
"external_url": "https://meditation.approagency.ir/storage/videos/morning_success.mp4", "external_url": "https://meditation.approagency.ir/storage/videos/morning_success.mp4",
"visibility": "public", "visibility": "public",
"tags": [ "tags": [
@@ -40,4 +40,5 @@ body:json {
settings { settings {
encodeUrl: true encodeUrl: true
timeout: 0
} }
+21
View File
@@ -0,0 +1,21 @@
meta {
name: delete rating
type: http
seq: 4
}
delete {
url: {{baseUrl}}/ratings/:type/:id
body: none
auth: inherit
}
params:path {
type: music
id: 1
}
settings {
encodeUrl: true
timeout: 0
}
@@ -1,5 +1,5 @@
meta { meta {
name: get all ratings name: get all rating
type: http type: http
seq: 3 seq: 3
} }
+21
View File
@@ -0,0 +1,21 @@
meta {
name: get per user rating
type: http
seq: 2
}
get {
url: {{baseUrl}}/ratings/:type/:id/user
body: none
auth: inherit
}
params:path {
type: media
id: 1
}
settings {
encodeUrl: true
timeout: 0
}
@@ -1,5 +1,5 @@
meta { meta {
name: store | update name: store | update rating
type: http type: http
seq: 1 seq: 1
} }
@@ -11,7 +11,7 @@ post {
} }
params:path { params:path {
type: music type: media
id: 1 id: 1
} }