GET /navigation(/:category_id)

Get category list that constitutes the navigation hierarchy.

Request Parameters

Parameter Type Description Examples
category_id (optional) BSON id The id of the category to use as the root node. 506bb8b357817e56bb000032

Response Parameters

Parameter Type Description
categories array An array of categories.
id BSON id The id of the category
name string The name of the category
title string The alternative, long title to describe the category
link string Short link for the category
url string The full URL for the category
window_target string Should this link open in a named window
secure boolean Is this category on the alternate ssl mirror of the site
active_count integer The price formatted as a currency string
children boolean Are there any sub-categories

Examples

curl http://launch.ly/__/navigation/4fbdd73557817e2107000187.json

This will return the following JSON …

 1{
 2        "categories": [{
 3                "id": "50b2f48957817e0166000792",
 4                "name": "@MelbourneSystem",
 5                "title": "We are on twitter @MelbourneSystem",
 6                "link": "http://twitter.com/MelbourneSystem",
 7                "url": "http://twitter.com/MelbourneSystem",
 8                "window_target": null,
 9                "secure": false,
10                "active_count": 0,
11                "children": false
12        }, {
13                "id": "50b2f53757817e22c3000002",
14                "name": "Facebook",
15                "title": null,
16                "link": "http://www.facebook.com/launchly",
17                "url": "http://www.facebook.com/launchly",
18                "window_target": null,
19                "secure": false,
20                "active_count": 0,
21                "children": false
22        }, {
23                "id": "50b2f4ac57817e22c3000001",
24                "name": "Google+",
25                "title": null,
26                "link": "https://plus.google.com/u/0/108951385047904656002/posts",
27                "url": "https://plus.google.com/u/0/108951385047904656002/posts",
28                "window_target": null,
29                "secure": false,
30                "active_count": 0,
31                "children": false
32        }, {
33                "id": "50b2f55857817e22c3000003",
34                "name": "Contact Us",
35                "title": null,
36                "link": "/contact",
37                "url": "http://launch.ly/en/contact",
38                "window_target": null,
39                "secure": false,
40                "active_count": 0,
41                "children": false
42        }]
43}