Skip to content

Instantly share code, notes, and snippets.

@juliomenendez
Created May 8, 2012 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliomenendez/2637618 to your computer and use it in GitHub Desktop.
Save juliomenendez/2637618 to your computer and use it in GitHub Desktop.
Example of JSON API for moonalice search
{
"meta": {
"query": "search terms from the user"
},
"objects": [
{
"nid": unique_id_for_this_item,
"type": 1, // 1 means this result is a show
"title": "Item title to show in the result view",
"mr_id": id of the item in mobilerider system,
"show": null, // null for type:1, show nid for type:2 and type:3
"poster_small": http://....
},
{
"nid": unique_id_for_this_item,
"type": 2, // 2 means this result is an audio
"title": "Item title to show in the result view",
"mr_id": id of the item in mobilerider system
"show": nid_of_the_show_containing_this_media, // null for type:1, show nid for type:2 and type:3
"poster_small": http://....
},
{
"nid": unique_id_for_this_item,
"type": 3, // 3 means this result is an audio
"title": "Item title to show in the result view",
"mr_id": id of the item in mobilerider system
"show": nid_of_the_show_containing_this_media, // null for type:1, show nid for type:2 and type:3
"poster_small": http://....
},
...
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment