intial end point for api working along with its view