mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(api): add POST /exam-challenge-completed (#52395)
This commit is contained in:
@@ -26,6 +26,7 @@ type CompletedChallenge {
|
||||
id String
|
||||
isManuallyApproved Boolean? // Undefined
|
||||
solution String? // Null | Undefined
|
||||
examResults ExamResults? // Undefined
|
||||
}
|
||||
|
||||
type PartiallyCompletedChallenge {
|
||||
@@ -79,6 +80,7 @@ model user {
|
||||
acceptedPrivacyTerms Boolean
|
||||
// badges Json? // Undefined | { coreTeam [][] } removed, as new API never uses it.
|
||||
completedChallenges CompletedChallenge[]
|
||||
completedExams CompletedExam[] // Undefined
|
||||
currentChallengeId String?
|
||||
donationEmails String[] // Undefined | String[] (only possible for built in Types like String)
|
||||
email String
|
||||
@@ -213,6 +215,22 @@ model Exam {
|
||||
questions Question[]
|
||||
}
|
||||
|
||||
type CompletedExam {
|
||||
id String
|
||||
challengeType Int
|
||||
completedDate Float // TODO(Post-MVP): Change to DateTime?
|
||||
examResults ExamResults
|
||||
}
|
||||
|
||||
type ExamResults {
|
||||
numberOfCorrectAnswers Int
|
||||
numberOfQuestionsInExam Int
|
||||
percentCorrect Float
|
||||
passingPercent Int
|
||||
passed Boolean
|
||||
examTimeInSeconds Int
|
||||
}
|
||||
|
||||
type Question {
|
||||
id String
|
||||
question String
|
||||
|
||||
Reference in New Issue
Block a user