RESTful API get data and example ajax