Skip to content

aatng-gh/swamphacks-2022-litkode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Litkode

Specifications

  • Fetch all questions
  • Store in database
  • Allow users to add questions to study list
  • Allow users to rate questions' difficulty: Easy, Medium, Hard
  • Recommend users weak topics
  • Add timer

Endpoints

api/questions

GET api/questions

{
  "data": [
    {
      "id": string,
      "rating": string,
      "lastPracticeDate": Date,
    }, ...
  ]
}

POST api/questions

{
  "id": string
}

DELETE api/questions/[:id]

PATCH api/questions/[:id]

{
  "rating": int (optional),
  "lastPracticeDate": Date (optional)
}

Note: Backend should parse JSON Date format. i.e: 2012-04-23T18:25:43.511Z

api/recommendations

GET api/recommendations

  {
    "data": [
      id,...
    ]
  }
{
  id: string,
  rating: int,
  lastPracticeDate: Date
}
rating = 0 | 1 | 2 | 3
0 -> never
1 -> easy
2 -> medium
3 -> hard

About

The journey to your 6-figure salary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •