added more api definitions in controllers and routes. Still need to complete views