Simple API for CRUD operations using Rails