Created
May 8, 2012 17:25
-
-
Save juliomenendez/2637618 to your computer and use it in GitHub Desktop.
Example of JSON API for moonalice search
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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