Flexible RESTful API