import { map } from 'rxjs/operators';
import { PolicyInstance, PolicyInstanceAck, PolicyInstances, PolicyStatus, PolicyType, PolicyTypes } from '../../interfaces/policy.types';
import { ControlpanelSuccessTransport } from '../../interfaces/controlpanel.types';
+import { Ric } from 'src/app/interfaces/ric';
/**
* Services for calling the policy endpoints.
})
export class PolicyService {
- private apiVersion2 = 'v2'
- private basePath = '';
+ private apiVersion2 = '/v2'
+ private basePath = '/a1-policy';
policyTypesPath = 'policy-types';
policyPath = 'policies';
}
- getRics(policyTypeId: string): Observable<string[]> {
- const url = this.buildPath('rics') + '?policyType=' + policyTypeId;
+ getRics(policyTypeId: string): Observable<Ric[]> {
+ const url = this.buildPath('rics') + '?policytype_id=' + policyTypeId;
return this.httpClient.get<any>(url);
}
}