Authorization: Bearer ********************{
"content": "Which of the following are benefits of using NestJS?",
"category": "Backend Development",
"options": [
{
"text": "It provides a modular architecture",
"isCorrect": true
},
{
"text": "It supports TypeScript out of the box",
"isCorrect": true
},
{
"text": "It has built-in support for dependency injection",
"isCorrect": true
},
{
"text": "It is only used for frontend development",
"isCorrect": false
}
]
}
curl --location 'http://localhost:3000/api/v1integrity-assessment/question' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"content": "Which of the following are benefits of using NestJS?",
"category": "Backend Development",
"options": [
{
"text": "It provides a modular architecture",
"isCorrect": true
},
{
"text": "It supports TypeScript out of the box",
"isCorrect": true
},
{
"text": "It has built-in support for dependency injection",
"isCorrect": true
},
{
"text": "It is only used for frontend development",
"isCorrect": false
}
]
}'{
"message": "Question created successfully",
"data": {
"id": 1,
"scenario": "You witness a colleague taking credit for your work. How do you respond?",
"content": "What is the most ethical way to handle this situation?",
"createdAt": "2025-02-28T08:49:26.508Z",
"updatedAt": "2025-02-28T08:49:26.508Z",
"options": [
{
"id": 1,
"text": "Confront the colleague and demand recognition.",
"isCorrect": false,
"questionId": 1
},
{
"id": 2,
"text": "Report the incident to your manager.",
"isCorrect": true,
"questionId": 1
},
{
"id": 3,
"text": "Ignore the situation to avoid conflict.",
"isCorrect": false,
"questionId": 1
},
{
"id": 4,
"text": "Discuss the matter with the colleague privately.",
"isCorrect": true,
"questionId": 1
}
]
}
}