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

Commit

Permalink
feat(domain): add zone records (#254)
Browse files Browse the repository at this point in the history
ref:  DTRSD-4702

Signed-off-by: Marie JONES <[email protected]>
  • Loading branch information
marie-j authored and antleblanc committed Oct 30, 2019
1 parent e0be548 commit 0e5631d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/api/domain/domain.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ angular.module('ovh-api-services').service('OvhApiDomain', ($injector) => ({
Configurations() {
return $injector.get('OvhApiDomainConfigurations');
},
Options() {
return $injector.get('OvhApiDomainOptions');
},
Rules() {
return $injector.get('OvhApiDomainRules');
},
Options() {
return $injector.get('OvhApiDomainOptions');
Zone() {
return $injector.get('OvhApiDomainZone');
},
}));
8 changes: 8 additions & 0 deletions src/api/domain/zone/domain-zone.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module('ovh-api-services').service('OvhApiDomainZone', ($injector) => ({
v6() {
return $injector.get('OvhApiDomainZoneV6');
},
Record() {
return $injector.get('OvhApiDomainZoneRecord');
},
}));
5 changes: 5 additions & 0 deletions src/api/domain/zone/domain-zone.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular.module('ovh-api-services').service('OvhApiDomainZoneV6', ($resource) => $resource(
'/domain/zone/:zoneName', {
zoneName: '@zoneName',
},
));
5 changes: 5 additions & 0 deletions src/api/domain/zone/record/domain-zone-record.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular.module('ovh-api-services').service('OvhApiDomainZoneRecord', ($injector) => ({
v6() {
return $injector.get('OvhApiDomainZoneRecordV6');
},
}));
6 changes: 6 additions & 0 deletions src/api/domain/zone/record/domain-zone-record.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
angular.module('ovh-api-services').service('OvhApiDomainZoneRecordV6', ($resource) => $resource(
'/domain/zone/:zoneName/record/:id', {
zoneName: '@zoneName',
id: '@id',
},
));

0 comments on commit 0e5631d

Please sign in to comment.