feat: media play

This commit is contained in:
2026-06-01 14:30:20 +03:30
parent 22c27b6686
commit b243ec3c0b
31 changed files with 322 additions and 17 deletions
+20
View File
@@ -0,0 +1,20 @@
meta {
name: admin analytics
type: http
seq: 7
}
get {
url: {{baseUrl}}/admin/survey-questions/:id/analytics
body: none
auth: inherit
}
params:path {
id: 2
}
settings {
encodeUrl: true
timeout: 0
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: admin show
type: http
seq: 6
}
get {
url: {{baseUrl}}/admin/survey-questions/2
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}
+31
View File
@@ -0,0 +1,31 @@
meta {
name: answer
type: http
seq: 5
}
post {
url: {{baseUrl}}/survey-questions/:id/answer
body: json
auth: inherit
}
params:path {
id: 2
}
body:json {
{
"option_ids": [8,9,10]
}
}
body:multipart-form {
" option_ids[0]": 4
" option_ids[1]": 5
}
settings {
encodeUrl: true
timeout: 0
}
+41
View File
@@ -0,0 +1,41 @@
meta {
name: delete
type: http
seq: 4
}
delete {
url: {{baseUrl}}/survey-questions/:id
body: json
auth: inherit
}
params:path {
id: 2
}
body:json {
{
"options": [
{
"label": "Laravel"
},
{
"label": "React.js"
},
{
"label": "Vue.js"
},
{
"label": "Django"
}
]
}
}
settings {
encodeUrl: true
timeout: 0
}
+8
View File
@@ -0,0 +1,8 @@
meta {
name: survey-question
seq: 19
}
auth {
mode: inherit
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: get survay
type: http
seq: 1
}
get {
url: {{baseUrl}}/survey-questions/2
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}
+49
View File
@@ -0,0 +1,49 @@
meta {
name: store survay
type: http
seq: 2
}
post {
url: {{baseUrl}}/survey-questions
body: json
auth: inherit
}
body:json {
{
"question": "Which frameworks have you worked with?",
"description": "Select all that apply",
"type": "multiple",
"order": 2,
"is_active": true,
"options": [
{
"label": "Laravel"
},
{
"label": "React"
},
{
"label": "Vue.js"
},
{
"label": "Django"
}
]
}
}
body:multipart-form {
question: سلام چطوری؟
type: multiple @contentType(single,multiple)
is_active: true
options.[1].label: خوب
~description:
~order:
}
settings {
encodeUrl: true
timeout: 0
}
+41
View File
@@ -0,0 +1,41 @@
meta {
name: update
type: http
seq: 3
}
put {
url: {{baseUrl}}/survey-questions/:id
body: json
auth: inherit
}
params:path {
id: 2
}
body:json {
{
"options": [
{
"label": "Laravel"
},
{
"label": "React.js"
},
{
"label": "Vue.js"
},
{
"label": "Django"
}
]
}
}
settings {
encodeUrl: true
timeout: 0
}