Back to API overview

ATTRIBUTE_LIST Object

The table object is a generalized attribute list. It is a table object that has only one row and where headers are identified by keys.

Sample

  {
     "type" : "table",
     "subtype" : "attribute_list",
     "data" : {
        "tabs" : [],
        "headers" : [
           {
              "text" : "Header 1",
              "key" : "header_key"
           },
           // ...
        ],
        "regions" : [
           {
              "rows" : [
                 {
                    "cells" : [
                       {
                          "text" : [
                             "Value 1"
                          ]
                       },
                    // ...
                 }
              ]
           }
        ],
        "title" : "Title"
     },
     "doc" : "https://api-v2.swissunihockey.ch/api/doc/attribute_list",
  }

Usage

Attribute lists can be rendered as a table where headers are printed as row headers and values follow the headers horizontally.

Alternatively, you can query the json structure for a given header key and extract values from the structure to place them in custom locations in your application.