$resources and its Mock
mocking get/post urls