Skip to content

Instantly share code, notes, and snippets.

@appsparkler
Last active December 26, 2018 04:43
Show Gist options
  • Save appsparkler/7ce9d5e7e607a95c483d88fabb9a611e to your computer and use it in GitHub Desktop.
Save appsparkler/7ce9d5e7e607a95c483d88fabb9a611e to your computer and use it in GitHub Desktop.
/*
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);
}
}
/*
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