當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript CoreWebService.requestView方法代碼示例

本文整理匯總了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'
     });
 }
開發者ID:dotCMS,項目名稱:core-web,代碼行數:7,代碼來源:account-service.ts

示例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'));
 }
開發者ID:dotCMS,項目名稱:core-web,代碼行數:15,代碼來源:dot-contentlet-locker.service.ts

示例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'));
 }
開發者ID:dotCMS,項目名稱:core-web,代碼行數:15,代碼來源:dot-workflow.service.ts

示例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'));
 }
開發者ID:dotCMS,項目名稱:core-web,代碼行數:15,代碼來源:dot-workflow.service.ts

示例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'));
 }
開發者ID:dotCMS,項目名稱:core-web,代碼行數:14,代碼來源:dot-workflow.service.ts

示例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'));
 }
開發者ID:dotCMS,項目名稱:core-web,代碼行數:14,代碼來源:dot-content-type.service.ts

示例7: getLicense

 private getLicense(): Observable<any> {
     return this.coreWebService
         .requestView({
             method: RequestMethod.Get,
             url: this.licenseURL
         })
         .pipe(pluck('entity', 'config', 'license'));
 }
開發者ID:dotCMS,項目名稱:core-web,代碼行數:8,代碼來源:dot-license.service.ts

示例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'));
 }
開發者ID:dotCMS,項目名稱:core-web,代碼行數:15,代碼來源:dot-themes.service.ts

示例9: loadFieldTypes

 loadFieldTypes(): Observable<FieldType[]> {
     return this.coreWebService
         .requestView({
             method: RequestMethod.Get,
             url: 'v1/fieldTypes'
         })
         .pipe(pluck('entity'));
 }
開發者ID:dotCMS,項目名稱:core-web,代碼行數:8,代碼來源:field.service.ts

示例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'));
 }
開發者ID:dotCMS,項目名稱:core-web,代碼行數:16,代碼來源:crud.service.ts


注:本文中的dotcms-js.CoreWebService.requestView方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。