Skip to content

Use jsonbuilder to make a better class json model #7

Description

@hex337

Right now, we only return the info stored in the meeting object when requesting a meeting by id in json format. We need to return a whole host of other info, including the meeting members, their roles, and probably school information.

This is in regards to what we get when hitting /meetings/1.json

A format like this maybe:

{
  "id": 1,
  "instructor": {
    "id": 1,
    "name": "rachel evans",
    ...
  },
  "assistants": [
    {
      "id": 2,
      "name": "alex Kleissner",
      ...
    },
    ...
  ],
  "students": [
    {
      "id": 3,
      ...
    },
    ...
  ],
  "class_type": {
    "id": 1,
    "name": "Sparring",
  },
  "display_name": "Monday Night Sparring",
  "met_date": "2017-06-22 18:00"
}

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions