openstax/tutor-js — pull request #4 by philschatz (2014-11-11 00:20:13+00:00)
Title: all tasks are generic and have steps

also, exercise step has a content JSON key.

Example Task:

```json
{ "id": 3,
"title": "Exercise Task",
"steps": [{
"type": "exercise",
"content": {
"background":"This exercise has many parts. Each one is a different type of question. Einstein makes a 10 kg spaceship",
"parts":[
{
"background":"The spaceship moves at 1 m/s",
"questions":[
{
"id": "123",
"format": "short-answer",
"stem":"What is the rest mass in kg?"
},{
"id": "234",
"format": "multiple-choice",
"stem":"What is the force if it slams into a wall?",
"answers":[
{"id":"id1","value":"10","content":"10 N"},
{"id":"id2","value":"1","content":"1 N"}
]
}
]
}
]
}
}]
}
```