Files
2026-06-12 14:55:07 +03:30

59 lines
1.1 KiB
Plaintext

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",
"tags": ["focus", "calm"]
},
{
"label": "React",
"tags": ["energy"]
},
{
"label": "Vue.js",
"tags": []
},
{
"label": "Django"
}
]
}
}
body:multipart-form {
question: سلام چطوری؟
type: multiple @contentType(single,multiple)
is_active: true
options.[1].label: خوب
~description:
~order:
}
settings {
encodeUrl: true
timeout: 0
}
docs {
Each option may carry `tags` (array of tag names). Tags are firstOrCreate'd
and linked to the option; they drive `survey-questions/suggested-media`,
which matches media that share the tags behind the user's chosen options.
}