NXP-15041: wip - add new query endpoint to rest api