added api spec testing /query endpoint with search params