example of REST API in Rails