本文整理汇总了TypeScript中dotcms-js.CoreWebService.requestView方法的典型用法代码示例。如果您正苦于以下问题:TypeScript CoreWebService.requestView方法的具体用法?TypeScript CoreWebService.requestView怎么用?TypeScript CoreWebService.requestView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dotcms-js.CoreWebService
的用法示例。
在下文中一共展示了CoreWebService.requestView方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: updateUser
public updateUser(user: AccountUser): Observable<ResponseView> {
return this.coreWebService.requestView({
body: user,
method: RequestMethod.Put,
url: 'v1/users/current'
});
}
示例2: unlock
/**
* Unlock a content asset
*
* @param string inode
* @returns Observable<any>
* @memberof PageViewService
*/
unlock(inode: string): Observable<any> {
return this.coreWebService
.requestView({
method: RequestMethod.Put,
url: `content/unlock/inode/${inode}`
})
.pipe(pluck('bodyJsonObject'));
}
示例3: fireWorkflowAction
/**
* Updates the workflow actions for a page asset
*
* @param string inode
* @returns Observable<any> // contentlet
* @memberof DotWorkflowService
*/
fireWorkflowAction(inode: string, actionId: string): Observable<any> {
return this.coreWebService
.requestView({
method: RequestMethod.Put,
url: `v1/workflow/actions/${actionId}/fire?inode=${inode}`
})
.pipe(pluck('entity'));
}
示例4: getContentWorkflowActions
/**
* Returns the wokflow or workflow actions for a page asset
*
* @param string inode
* @returns Observable<DotWorkflowAction[]>
* @memberof DotWorkflowService
*/
getContentWorkflowActions(inode: string): Observable<DotWorkflowAction[]> {
return this.coreWebService
.requestView({
method: RequestMethod.Get,
url: `v1/workflow/contentlet/${inode}/actions`
})
.pipe(pluck('entity'));
}
示例5: get
/**
* Method to get Workflows
* @param string id
* @returns Observable<SelectItem[]>
* @memberof DotWorkflowService
*/
get(): Observable<DotWorkflow[]> {
return this.coreWebService
.requestView({
method: RequestMethod.Get,
url: 'v1/workflow/schemes'
})
.pipe(pluck('entity'));
}
示例6: getContentTypes
/**
*Get the content types from the endpoint
*
* @returns {Observable<StructureTypeView[]>}
* @memberof DotContentTypeService
*/
getContentTypes(): Observable<StructureTypeView[]> {
return this.coreWebService
.requestView({
method: RequestMethod.Get,
url: 'v1/contenttype/basetypes'
})
.pipe(pluck('entity'));
}
示例7: getLicense
private getLicense(): Observable<any> {
return this.coreWebService
.requestView({
method: RequestMethod.Get,
url: this.licenseURL
})
.pipe(pluck('entity', 'config', 'license'));
}
示例8: get
/**
* Get Theme information based on the inode.
*
* @param string inode
* @returns Observable<DotTheme>
* @memberof DotThemesService
*/
get(inode: string): Observable<DotTheme> {
return this.coreWebService
.requestView({
method: RequestMethod.Get,
url: 'v1/themes/id/' + inode
})
.pipe(pluck('entity'));
}
示例9: loadFieldTypes
loadFieldTypes(): Observable<FieldType[]> {
return this.coreWebService
.requestView({
method: RequestMethod.Get,
url: 'v1/fieldTypes'
})
.pipe(pluck('entity'));
}
示例10: delete
/**
* Delete item by id from the data loaded
*
* @param string baseUrl
* @param string id
* @returns Observable<any>
* @memberof CrudService
*/
delete(baseUrl: string, id: string): Observable<any> {
return this.coreWebService
.requestView({
method: RequestMethod.Delete,
url: `${baseUrl}/${id}`
})
.pipe(pluck('entity'));
}