using Rest angular and configuring it for all the app