Categories

Index Action

Parameter Abbreviation Data Type
network_id nid INTEGER

Output

{
  "Categories": [<INTEGER>, ...],
  "StatusCode": 0
}

Example Requests

http://api.ostar.inf.unibz.it/0/categories
{
  "Categories": [1, 2, 3, 4, 5, 6, 7, 8, 9],
  "StatusCode": 0
}

Show Action

Parameter Abbreviation Data Type
language l LANGUAGE
network_id nid INTEGER

Output

{
  "Category": {
    "Id": <INTEGER>,
    "Name": <STRING>,
    "Description": <STRING>
  },
  "StatusCode": <INTEGER>
}

Example Requests

http://api.ostar.inf.unibz.it/0/categories/8?l=de
{
  "Category": {
    "Id": 8,
    "Name": "Kultur",
    "Description": null
  },
  "StatusCode": 0
}

Mutlishow Action

Parameter Abbreviation Data Type
ids ids IDS
language l LANGUAGE
network_id nid INTEGER

Output

{
  "Categories": [{
    "Id": <INTEGER>,
    "Name": <STRING>,
    "Description": <STRING>
  }, ...],
  "StatusCode": <INTEGER>
}

Example Requests

http://api.ostar.inf.unibz.it/0/categories/multishow?ids=7,8&l=de
{
  "Categories": [
    {
      "Id": 7,
      "Name": "Verwaltungsdienste",
      "Description": null
    },
    {
      "Id": 8,
      "Name": "Kultur",
      "Description": null
    }
  ],
  "StatusCode": 0
}