Added detail controller and model for handling API request/response