Last active
December 26, 2018 04:43
-
-
Save appsparkler/7ce9d5e7e607a95c483d88fabb9a611e to your computer and use it in GitHub Desktop.
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
/* | |
gist: https://gist.github.com/appsparkler/7ce9d5e7e607a95c483d88fabb9a611e | |
% - The percent sign represents zero, one, or multiple characters | |
_ - The underscore represents a single character | |
*/ | |
{ | |
let domain = "https://env01-author.kpmg.com"; | |
let url = `${domain}/bin/querybuilder.json`; | |
let data = { | |
"path": "/content/kpmgpublic/xx/en/home", | |
"1_property": "sling:resourceType", | |
"1_property.value": "%magazine%", | |
"1_property.operation": "like", | |
"orderby": "path", | |
"p.limit": "-1" | |
} | |
$.ajax({ | |
url, | |
data, | |
success | |
}); | |
function success(res) { | |
console.log(res); | |
} | |
} |
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
/* | |
gist: https://gist.github.com/appsparkler/7ce9d5e7e607a95c483d88fabb9a611e | |
% - The percent sign represents zero, one, or multiple characters | |
_ - The underscore represents a single character | |
*/ | |
{ | |
let domain = "https://env01-author.kpmg.com"; | |
let url = `${domain}/bin/querybuilder.json`; | |
let data = { | |
"path": "/content/kpmgpublic/xx/en/home", | |
"1_property": "sling:resourceType", | |
"1_property.value": "%magazine%", | |
"1_property.operation": "like", | |
"orderby": "path", | |
"p.limit": "-1" | |
} | |
$.ajax({ | |
url, | |
data, | |
success | |
}); | |
function success(res) { | |
console.log(res); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment