Added POST /query api method