Skip to content
Martin Stancanelli edited this page Jan 22, 2017 · 14 revisions

Teacher

Enums are signaled with their options eg "a|b|c|d", others are the primitive type shown.

{
  "id": 1,
  "name": "Juan",
  "email": "[email protected]",
  "gender": "male|female",
  "birthday": "2012-04-23T18:25:43.511Z",
  "picture": {
    "large": null,
    "medium": null,
    "thumb": null
  },
  "location": {
    "latitude": -34.56,
    "longitude": 45.89
  },
  "class_cost": 0,
  "subjects": [
    {
      "id": 2,
      "name": "math",
      "levels": [
        "general|elementary|high|college",
        "general|elementary|high|college",
        "general|elementary|high|college"
      ]
    }
  ],
  "expertise": {
    "value": "A+|A|B|C|D|E|F"
  },
  "rating": {
    "value": "yellow|orange|green|blue|purple|black"
  }
}

Student

{
  "id": 2,
  "name": "carlos",
  "email": "[email protected]",
  "gender": "male",
  "birthday": "2012-04-23T18:25:43.511Z",
  "location": {
    "latitude": 31.22,
    "longitude": 56.77
  }
}
Clone this wiki locally