NXP-14697: Add new query endpoint to rest api