rikuson / quiz

Simple flashcards application with command-line interface.
Other
0 stars 0 forks source link

Publish WEB API #34

Closed rikuson closed 1 year ago

rikuson commented 1 year ago
$ curl https://rikuson.github.io/quiz-store/quizzes/001-macro-count-statements
{ "question": "blah", "answer": "blahblah" }
$ curl https://rikuson.github.io/quiz-store/activities/001-macro-count-statements
{ "score": 0, "answered_at": "2022-01-01 12:12:12" }
rikuson commented 1 year ago

Or

$ curl https://rikuson.github.io/quiz-store/activities/001-macro-count-statements
[
  { "answer": "blah", "answered_at": "2022-01-01 12:12:12" },
  { "answer": "blah", "answered_at": "2022-01-02 12:12:12" },
  ...
]
rikuson commented 1 year ago

quiz-store should be in charge of this. For example, if quiz-store is pushed to github, generate json file from quizfile via github actions.