---
# System prepended metadata

title: Dynamic Table Representation

---

# Dynamic Table Representation
## general table schema
```
{
  "type": "table",
  "id": "table_id",
  "content": {
    "title": "title_of_the_table"
    "columns": ["column_name1", "column_name2"],
    "data": [
      [
        {
          "display_text": value_for_row1_column1",
          #### this field is optional; when it is provided, the value is shown as a link
          "link": {  
            "url": "relative_url",
            "request_method": "post",
            "headers": {
              "key": "value"
            },
            "body": "body_value"
          }
        }, 
        {
          "display_text": value_for_row1_column2"
        }
      ],
      [
        {
          "display_text": value_for_row2_column1"
        }, 
        {
          "display_text": value_for_row2_column2"
        }
      ]
    ]
  }
}
```

## tables for endpoint responses
#### `/profile`
- List[CampaignObject] -> table
- List[ProgressObject] -> table


#### `editor`
- table: a list of editors

#### leaderboard
- List[CategoryStatsObject] -> table
- overview stats table

#### CampaignObject
- table 1: campaign meta information
- table 2: overall performance
- table 3: category performance
- table 3: battles

#### BattleObject
- table 1: battle meta information
- table 2: overall performance
- table 2: category performance

#### ExampleObject
- 1 table


#### `/conflicts/summary`
- table 1: conflicts stats overview
- table 2: category information

#### `/conflicts/example`
- table 1: stats overview
- table 2: list of examples
- table 3: suggestion filters


#### `/failed/summary`
- table 1: overview
- table 2: category information


#### ModelObject
- one table