adding json view
removing the consume self api code