Example
//This example gets the response from iTunes
{
"rest": {
"name": "rest",
"connector": "rest",
"debug": true,
"options": {
"useQuerystring": true,
"timeout": 10000,
"headers": {
"accepts": "application/json",
"content-type": "application/json"
}
},
"operations": [
{
"template": {
"method": "GET",
"url": "https://itunes.apple.com/search",
"query": {
"term": "{keyword}",
"country": "{country=IN}",
"media": "{itemType=music}",
"limit": "{limit=10}",
"explicit": "false"
}
},
"functions": {
"search": [
"keyword",
"country",
"itemType",
"limit"
]
}
},
{
"template": {
"method": "GET",
"url": "https://itunes.apple.com/lookup",
"query": {
"id": "{id}"
}
},
"functions": {
"findById": [
"id"
]
}
}
]
}
}