feat:add tags

This commit is contained in:
2026-06-12 14:55:07 +03:30
parent 6a033f6d07
commit 311b8b2ada
4 changed files with 27 additions and 11 deletions
+3 -3
View File
@@ -11,9 +11,9 @@ auth:bearer {
} }
vars:pre-request { vars:pre-request {
token: 2|gpnAibfdNxCcnEVbMMzw8akRoQyzCKfjoJtK5qOp7d0fcbb3 token: 6525|frMOcyJV7elCdNV0tfbCo2IvDEhSCStG6LHJ21cq8dbd4b29
baseUrl: http://localhost:8000/api baseUrl: https://meditation.approagency.ir/api
~baseUrl: https://meditation.approagency.ir/api ~baseUrl: http://localhost:8000/api
~baseUrl: ~baseUrl:
~baseUrl: ~baseUrl:
~approo_token: ~approo_token:
+1 -1
View File
@@ -5,7 +5,7 @@ meta {
} }
get { get {
url: {{baseUrl}}/survey-questions/2 url: {{baseUrl}}/survey-questions/
body: none body: none
auth: inherit auth: inherit
} }
+12 -3
View File
@@ -19,13 +19,16 @@ body:json {
"is_active": true, "is_active": true,
"options": [ "options": [
{ {
"label": "Laravel" "label": "Laravel",
"tags": ["focus", "calm"]
}, },
{ {
"label": "React" "label": "React",
"tags": ["energy"]
}, },
{ {
"label": "Vue.js" "label": "Vue.js",
"tags": []
}, },
{ {
"label": "Django" "label": "Django"
@@ -47,3 +50,9 @@ settings {
encodeUrl: true encodeUrl: true
timeout: 0 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.
}
+11 -4
View File
@@ -19,14 +19,16 @@ body:json {
"options": [ "options": [
{ {
"label": "Laravel" "label": "Laravel",
"tags": ["focus", "calm"]
}, },
{ {
"label": "React.js" "label": "React.js",
"tags": ["energy"]
}, },
{ {
"label": "Vue.js" "label": "Vue.js",
"tags": []
}, },
{ {
"label": "Django" "label": "Django"
@@ -39,3 +41,8 @@ settings {
encodeUrl: true encodeUrl: true
timeout: 0 timeout: 0
} }
docs {
Sending `options` replaces the whole option set (and clears existing answers).
Each option may include `tags` (array of tag names) used by suggested-media.
}