Closed nhtoby311 closed 2 years ago
I thought "label"s are tied to "FOR_BLIND_PP", "SOCIAL", "ENGLISH",...
what are these values? The label i mean just for displaying the text of the answer
We agreed that labels will be used for job suggestion (labels are similar to skills in Linkedin). "description" or "answer" or "ans_desc" will be better
Ok! I update the post above, along with types from Frontend
The desired route for API should be /user
, as now we are going to have user so it makes more sense
Due to the release of Technical Challenge, we have to change to Slider, scale from 1-5 design. Therefore the object also being changed
/api/assessments/{uuid}/work-motivation-test
Do you need "answered_value" for the UI? And answer's"label" will be changed to "description" to avoid confusion with "labels"
To be identical with other tests, motivation test's answer should follow multiple choices format.
"questions": [
{
"type": "MOTIVATION_QUESTION",
"description": "Question1",
"question_id": 1,
"answers": [
{
"description": "1",
"answer_id": 123,
"question_id": 1
},
{
"description": "2",
"answer_id": 124,
"question_id": 1
},
{
"description": "3",
"answer_id": 125,
"question_id": 1
},
{
"description": "4",
"answer_id": 126,
"question_id": 1
},
{
"description": "5",
"answer_id": 127,
"question_id": 1
}
],
}
]
Consider the following information: index
, answered_value
Are they neccessary?
Frontend Important:
answered_value
is necessary because later, when user reload the page, they can know the their selected answer, on each of the question. For Slider answer (1-5, pic above), answered_value
indicate which value was that. In Multiple Choice, answered_value
indicate the index of answer they choose
Frontend Non-Important: Minor note: "id"s might be confusing, so they will be named with a prefix depending on which they indicate. Ex: test_id, question_id, answer_id, label_id,...
Updated the desired Object
export type Question = { type: string question_id: number description: string answered_value?: number answers: Answer[] image?: { src: string alt: string } }
export type Answer = { answer_id: number description: string question_id: number test_id: number }
/api/{uuid}/work-motivation-test/assessment