change the way api request data, using WP_Query Api for more complex queries
Merge branch 'correct_restfulapi'