Fork me on GitHub

Lists the existing categories. You can get information about an specific category using its slug, which is the name of the category with spaces and punctuation signs replaced with - (hyphen). If no slug is provided, the method returns all known categories.

Parameters

Name Type Description
slug string The slug of the category. E.g. 2d-physics.

Return

Requesting http://api.as3gamegears.com/1.0/categories/2d-physics will produce the following return:


{
  "id": 31,
  "name": "2D",
  "slug": "2d-physics",
  "description": "2D physics engines\/tools.",
  "parent": 23
}

Requesting http://api.as3gamegears.com/1.0/categories will produce the following return:

{
  "1": {
    "id": 1,
    "name": "Uncategorized",
    "slug": "uncategorized",
    "description": "",
    "parent": 0
  },
  "4": {
    "id": 4,
    "name": "Augmented Reality",
    "slug": "augmented-reality",
    "description": "Tools to implement augmented reality.",
    "parent": 0
  },
  
  (...)
  
  "33": {
    "id": 33,
    "name": "3D",
    "slug": "3d-physics",
    "description": "3D physics engines\/tools.",
    "parent": 23
  }
}