setting up root controller, adding json
setting up the api