Renaming Files having BluePrint to have Blueprint
[ccsdk/cds.git] / cds-ui / designer-client / src / app / modules / feature-modules / packages / designer / source-view / source-view.service.ts
1 import {Injectable} from '@angular/core';
2 import {Observable} from 'rxjs';
3 import { ApiService } from 'src/app/common/core/services/api.typed.service';
4 import { BlueprintDetailModel } from '../../model/Blueprint.detail.model';
5 import { ModelType } from '../model/ModelType.model';
6 import { ResourceDictionaryURLs, BlueprintURLs } from 'src/app/common/constants/app-constants';
7
8
9
10 @Injectable({
11     providedIn: 'root'
12 })
13 export class SourceViewService {
14
15     constructor(private api1: ApiService<BlueprintDetailModel>) {
16     }
17
18
19     private getBlueprintModel(id: string): Observable<BlueprintDetailModel> {
20         return this.api1.getOne(BlueprintURLs.getOneBlueprint + '/' + id);
21     }
22     getPagedPackages(id: string) {
23         return this.getBlueprintModel(id);
24     }
25
26 }