Enhanced RESTful API example