Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
feat(connectivity.eligibility.search): add api bindings (#159)
Browse files Browse the repository at this point in the history
add new routes for both cities and street search
  • Loading branch information
JeremyDec authored and antleblanc committed Apr 25, 2019
1 parent c739d70 commit 6cc0364
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 14 deletions.
37 changes: 37 additions & 0 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -2684,6 +2684,9 @@ angular.module("ovh-api-services").service("OvhApiConnectivityEligibility", ["$i
v6: function () {
return $injector.get("OvhApiConnectivityEligibilityV6");
},
Search: function () {
return $injector.get("OvhApiConnectivityEligibilitySearch");
},
resetCache: cache.removeAll,
cache: cache
};
Expand All @@ -2702,6 +2705,40 @@ angular.module("ovh-api-services").service("OvhApiConnectivityEligibilityV6", ["
});
}]);

angular.module("ovh-api-services").service("OvhApiConnectivityEligibilitySearch", ["$injector", function ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiConnectivityEligibilitySearchV6");
}
};
}]);

angular.module("ovh-api-services").service("OvhApiConnectivityEligibilitySearchV6", ["$resource", function ($resource) {
"use strict";

return $resource("/connectivity/eligibility/search", {
}, {
getCities: {
url: "/connectivity/eligibility/search/cities",
method: "POST",
isArray: false,
params: {
zipCode: "@zipCode"
}
},
getStreets: {
url: "/connectivity/eligibility/search/streets",
method: "POST",
isArray: false,
params: {
inseeCode: "@inseeCode"
}
}
});
}]);

angular.module("ovh-api-services").service("OvhApiDbaas", ["$injector", function ($injector) {
"use strict";

Expand Down
27 changes: 13 additions & 14 deletions dist/ovh-api-services.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ angular.module("ovh-api-services").service("OvhApiConnectivityEligibility", func
v6: function () {
return $injector.get("OvhApiConnectivityEligibilityV6");
},
Search: function () {
return $injector.get("OvhApiConnectivityEligibilitySearch");
},
resetCache: cache.removeAll,
cache: cache
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module("ovh-api-services").service("OvhApiConnectivityEligibilitySearch", function ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiConnectivityEligibilitySearchV6");
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
angular.module("ovh-api-services").service("OvhApiConnectivityEligibilitySearchV6", function ($resource) {
"use strict";

return $resource("/connectivity/eligibility/search", {
}, {
searchCities: {
url: "/connectivity/eligibility/search/cities",
method: "POST",
isArray: false,
params: {
zipCode: "@zipCode"
}
},
searchStreets: {
url: "/connectivity/eligibility/search/streets",
method: "POST",
isArray: false,
params: {
inseeCode: "@inseeCode"
}
}
});
});

0 comments on commit 6cc0364

Please sign in to comment.