REST API routing, template, model, and view