AAI Queries through REST API