mdstores api
This commit is contained in:
parent
7cd0fcb23e
commit
b9d865e324
|
@ -14,7 +14,7 @@ export class MdstoresClient extends ISClient {
|
|||
}
|
||||
|
||||
loadMDStore(mdId: string, onSuccess: Function): void {
|
||||
this.httpGet<MDStore>('/proxy/byType/mdstore_manager/api/mdstore/' + encodeURIComponent(mdId), onSuccess);
|
||||
this.httpGet<MDStore>('/proxy/byType/mdstore_manager/api/mdstores/mdstore/' + encodeURIComponent(mdId), onSuccess);
|
||||
}
|
||||
|
||||
addMDStore(format: string, layout: string, interpretation: string, type: string, dsName: string, dsId: string, apiId: string, onSuccess: Function, relatedForm?: FormGroup) {
|
||||
|
@ -25,7 +25,7 @@ export class MdstoresClient extends ISClient {
|
|||
.set('dsId', dsId)
|
||||
.set('apiId', apiId);
|
||||
|
||||
this.httpPostWithOptions('/proxy/byType/mdstore_manager/api/new/'
|
||||
this.httpPostWithOptions('/proxy/byType/mdstore_manager/api/mdstores/new/'
|
||||
+ encodeURIComponent(format)
|
||||
+ '/'
|
||||
+ encodeURIComponent(layout)
|
||||
|
@ -37,38 +37,38 @@ export class MdstoresClient extends ISClient {
|
|||
}
|
||||
|
||||
deleteMDStore(mdId: string, onSuccess: Function): void {
|
||||
this.httpDelete('/proxy/byType/mdstore_manager/api/mdstore/' + encodeURIComponent(mdId), onSuccess);
|
||||
this.httpDelete('/proxy/byType/mdstore_manager/api/mdstores/mdstore/' + encodeURIComponent(mdId), onSuccess);
|
||||
}
|
||||
|
||||
prepareNewMDStoreVersion(mdId: string, onSuccess: Function): void {
|
||||
this.httpGet<MDStoreVersion>('/proxy/byType/mdstore_manager/api/mdstore/' + encodeURIComponent(mdId) + '/newVersion', onSuccess);
|
||||
this.httpGet<MDStoreVersion>('/proxy/byType/mdstore_manager/api/mdstores/mdstore/' + encodeURIComponent(mdId) + '/newVersion', onSuccess);
|
||||
}
|
||||
|
||||
commitMDStoreVersion(versionId: string, size: number, onSuccess: Function) {
|
||||
this.httpGet<any>('/proxy/byType/mdstore_manager/api/version/' + encodeURIComponent(versionId) + '/commit/' + size, onSuccess);
|
||||
this.httpGet<any>('/proxy/byType/mdstore_manager/api/mdstores/version/' + encodeURIComponent(versionId) + '/commit/' + size, onSuccess);
|
||||
}
|
||||
|
||||
abortMDStoreVersion(versionId: string, onSuccess: Function) {
|
||||
this.httpGet<any>('/proxy/byType/mdstore_manager/api/version/' + encodeURIComponent(versionId) + '/abort', onSuccess);
|
||||
this.httpGet<any>('/proxy/byType/mdstore_manager/api/mdstores/version/' + encodeURIComponent(versionId) + '/abort', onSuccess);
|
||||
}
|
||||
|
||||
deleteMDStoreVersion(versionId: string, onSuccess: Function) {
|
||||
this.httpDelete('/proxy/byType/mdstore_manager/api/version/' + encodeURIComponent(versionId), onSuccess);
|
||||
this.httpDelete('/proxy/byType/mdstore_manager/api/mdstores/version/' + encodeURIComponent(versionId), onSuccess);
|
||||
}
|
||||
|
||||
resetReadingMDStoreVersion(versionId: string, onSuccess: Function) {
|
||||
this.httpGet<any>('/proxy/byType/mdstore_manager/api/version/' + encodeURIComponent(versionId) + '/resetReading', onSuccess);
|
||||
this.httpGet<any>('/proxy/byType/mdstore_manager/api/mdstores/version/' + encodeURIComponent(versionId) + '/resetReading', onSuccess);
|
||||
}
|
||||
|
||||
loadMDStoreVersions(mdId: string, onSuccess: Function): void {
|
||||
this.httpGet<MDStoreVersion[]>('/proxy/byType/mdstore_manager/api/mdstore/' + encodeURIComponent(mdId) + '/versions', onSuccess);
|
||||
this.httpGet<MDStoreVersion[]>('/proxy/byType/mdstore_manager/api/mdstores/mdstore/' + encodeURIComponent(mdId) + '/versions', onSuccess);
|
||||
}
|
||||
|
||||
loadMDStoreVersion(versionId: string, onSuccess: Function): void {
|
||||
this.httpGet<MDStoreVersion>('/proxy/byType/mdstore_manager/api/version/' + encodeURIComponent(versionId), onSuccess);
|
||||
this.httpGet<MDStoreVersion>('/proxy/byType/mdstore_manager/api/mdstores/version/' + encodeURIComponent(versionId), onSuccess);
|
||||
}
|
||||
|
||||
loadMDStoreVersionRecords(versionId: string, limit: number, onSuccess: Function): void {
|
||||
this.httpGet<MDStoreRecord[]>('/proxy/byType/mdstore_manager/api/version/' + encodeURIComponent(versionId) + '/content/' + limit, onSuccess);
|
||||
this.httpGet<MDStoreRecord[]>('/proxy/byType/mdstore_manager/api/mdstores/version/' + encodeURIComponent(versionId) + '/content/' + limit, onSuccess);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
<td>{{md.type}}</td>
|
||||
</tr>
|
||||
<tr *ngFor="let e of md.params | keyvalue">
|
||||
<th>Parameter {{e.key}}</th>
|
||||
<th>Parameter: {{e.key}}</th>
|
||||
<td>{{e.value}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -68,6 +68,5 @@
|
|||
<mat-card-actions>
|
||||
<a [routerLink]="['/mdrecords/' + md.currentVersion + '/50']" mat-stroked-button color="primary">inspect</a>
|
||||
<button mat-stroked-button color="warn" (click)="deleteMdstore(md)">delete</button>
|
||||
<button mat-stroked-button color="info">zeppelin</button>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
|
|
Loading…
Reference in New Issue