system76 / beansbooks

A revolutionary cloud accounting platform designed for small and medium businesses.
129 stars 36 forks source link

Documentation: JSON Update #242

Closed funnylookinhat closed 8 years ago

funnylookinhat commented 8 years ago

The JSON in the API Documentation generator needs to produce better JSON that iterates rather than requires code to recurse before it can be traversed. As an example, actions_tree should look more like this:

"actions_tree": [
  {
    "part": "Beans",
    "name": "Beans",
    "children": [
      {
        "part": "Account",
        "name": "Beans_Account",
        "children": [
          {
            "part": "Calibrate",
            "name": "Beans_Account_Calibrate",
            "children": [
              {
                "part": "Check",
                "name": "Beans_Account_Calibrate_Check",
                "children": [ ]
              }
            ]
          }
        ]
      },
      ...
    ]
  }
]