本文整理汇总了TypeScript中core/rest.Rest.put方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Rest.put方法的具体用法?TypeScript Rest.put怎么用?TypeScript Rest.put使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core/rest.Rest
的用法示例。
在下文中一共展示了Rest.put方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: updateSettings
updateSettings(settings: RollcallSettings): Observable<void> {
return this.rest.put(`${this.getSettingApi()}?type=settings`, settings).do(() => {
this.settings.hideFree = settings.hideFree;
this.settings.hideLeave = settings.hideLeave;
this.settings.hideCancel = settings.hideCancel;
this.settings.random = settings.random;
});
}
示例2: updateSecretary
updateSecretary(subjectId: string, secretaryId: string): Observable<void> {
return this.rest.put(this.api.item(subjectId), {secretaryId});
}
示例3: updateDirector
updateDirector(subjectId: string, directorId: string): Observable<void> {
return this.rest.put(this.api.item(subjectId), {directorId});
}
示例4:
this.dialog.open(MentorSelectDialog).then(result => {
this.rest.put(`${this.api.item(this.form.id)}`, {teacherId: result})
.subscribe(() => this.form.paperApprover = result);
});
示例5: update
update(programId: number, options: any): Observable<void> {
return this.rest.put(this.api.item(programId), options);
}
示例6: updateViewType
updateViewType(viewType: string): Observable<void> {
return this.rest.put(`${this.getSettingApi()}?type=view`, {view: viewType}).do(() => {
this.viewType = viewType;
});
}
示例7: update
update(timeslotId: number, week: number, id: number, data: object): Observable<{attendances: AttendanceDto}> {
return this.rest.put(`${this.getRollcallApi(timeslotId, week)}/${id}`, data);
}