Is it possible to get the URL parameter in $ httpBackend in angularJS? I would like to do something like:
$httpBackend.whenGET('/api/v1/users/{userId}').respond(function (method, url, data) {
Having this functionality will really simplify the creation of a fairly functional mock API (it is easier to develop an external application without having to run the entire backend).
source share