当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript HttpClient.delete方法代码示例

本文整理汇总了TypeScript中@angular/common/http.HttpClient.delete方法的典型用法代码示例。如果您正苦于以下问题:TypeScript HttpClient.delete方法的具体用法?TypeScript HttpClient.delete怎么用?TypeScript HttpClient.delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在@angular/common/http.HttpClient的用法示例。


在下文中一共展示了HttpClient.delete方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: deleteInstResp

 // Remove a instituição responsavel
 deleteInstResp(idInstResp) {
   return this.http
     .delete(`${GESAC_API}instituicaoResponsavel/${idInstResp}`)
     .map(res => console.log(res)
     );
 }
开发者ID:thiagomantoani,项目名称:SGesac,代码行数:7,代码来源:instituicao-responsavel.service.ts

示例2: delete

 delete(url: string): Observable<any> {
     return this.http.delete(this.url(url));
 }
开发者ID:Telegramsrv,项目名称:web-practice,代码行数:3,代码来源:api.service.ts

示例3: deleteByName

 deleteByName(appId: number, cluster: string, namespace: string, name: string): Observable<any> {
   return this.http
     .delete(`/api/v1/kubernetes/apps/${appId}/secrets/${name}/namespaces/${namespace}/clusters/${cluster}`)
     .catch(error => Observable.throw(error));
 }
开发者ID:jacky68147527,项目名称:wayne,代码行数:5,代码来源:secret.ts

示例4: removeFile

 removeFile(fullPath: string): Observable<any> {
     return this.http.delete(`/raw/files${fullPath}`);
 }
开发者ID:EBIBioStudies,项目名称:BioStudyUISub,代码行数:3,代码来源:file.service.ts

示例5: deleteById

 deleteById(name: string, cluster: string): Observable<any> {
   return this.http
     .delete(`/api/v1/kubernetes/persistentvolumes/${name}/clusters/${cluster}`)
     .catch(error => Observable.throw(error));
 }
开发者ID:jacky68147527,项目名称:wayne,代码行数:5,代码来源:persistentvolume.ts

示例6: delete

 /**
  * Delete an Book by id.
  */
 delete(id : any) {
     return this.http.delete('/api/books/' + id)
         .pipe(catchError(this.handleError));
 }
开发者ID:jaxio,项目名称:celerio-angular-quickstart,代码行数:7,代码来源:book.service.ts

示例7: httpDelete

 /**
  * Sends a DELETE request to the API server.
  *
  * @param path Path relative to the API path.
  * @param body DELETE payload
  * @returns {Observable<Object>} JSON result observable
  */
 httpDelete(path: string): Observable<Object> {
   return this.handleHttpResult(
     this.http.delete(this.config.apiPath(path), this.addJwt()));
 }
开发者ID:gssblib,项目名称:librarian,代码行数:11,代码来源:rpc.service.ts

示例8: deleteBackend

 deleteBackend(backendServer: BackendServer) {
   return this.http.delete<BackendServer>(`${RCCConfig.API_URL}/backends/${backendServer.id}`).pipe(
     map(() => backendServer),
   );
 }
开发者ID:our-city-app,项目名称:plugin-mobicage-control-center,代码行数:5,代码来源:rogerthat-backends.service.ts

示例9: removePaymentProvider

 removePaymentProvider(backendServer: string, paymentProvider: PaymentProvider) {
   const url = `${RCCConfig.getRogerthatApiUrl(backendServer)}/payment/providers/${paymentProvider.id}`;
   return this.http.delete<PaymentProvider>(url).pipe(
     map(() => paymentProvider),
   );
 }
开发者ID:our-city-app,项目名称:plugin-mobicage-control-center,代码行数:6,代码来源:rogerthat-backends.service.ts

示例10: delete

 delete(username: string) {
   return this.http.delete(`api/user/${username}`);
 }
开发者ID:C2python,项目名称:ceph,代码行数:3,代码来源:user.service.ts


注:本文中的@angular/common/http.HttpClient.delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。