How using .query stack in REST API?

Thank you very much, Amm0! Very interesting ideas that may be useful to me.