Fix the api/query url
add initial support for PatomicQuery which will be the last part before a beta release