How to execute xpath query in REST resource

Hi All,

I want to execute xpath query in my REST resource. How can i do it? Also, my query should execute for different channel(content scope) based on some parameters. With HstQueryManager, I don’t see an option to do it. If possible, please share some sample code.

Thanks
Rahul

this is documented in

(scope part)