// Remove a instituição responsavel
 deleteInstResp(idInstResp) {
   return this.http
     .delete(`${GESAC_API}instituicaoResponsavel/${idInstResp}`)
     .map(res => console.log(res)
     );
 }
Example #2
0
 delete(url: string): Observable<any> {
     return this.http.delete(this.url(url));
 }
Example #3
0
 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));
 }
 removeFile(fullPath: string): Observable<any> {
     return this.http.delete(`/raw/files${fullPath}`);
 }
Example #5
0
 deleteById(name: string, cluster: string): Observable<any> {
   return this.http
     .delete(`/api/v1/kubernetes/persistentvolumes/${name}/clusters/${cluster}`)
     .catch(error => Observable.throw(error));
 }
 /**
  * Delete an Book by id.
  */
 delete(id : any) {
     return this.http.delete('/api/books/' + id)
         .pipe(catchError(this.handleError));
 }
Example #7
0
 /**
  * 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()));
 }
 deleteBackend(backendServer: BackendServer) {
   return this.http.delete<BackendServer>(`${RCCConfig.API_URL}/backends/${backendServer.id}`).pipe(
     map(() => backendServer),
   );
 }
 removePaymentProvider(backendServer: string, paymentProvider: PaymentProvider) {
   const url = `${RCCConfig.getRogerthatApiUrl(backendServer)}/payment/providers/${paymentProvider.id}`;
   return this.http.delete<PaymentProvider>(url).pipe(
     map(() => paymentProvider),
   );
 }
Example #10
0
 delete(username: string) {
   return this.http.delete(`api/user/${username}`);
 }
Example #11
0
 delete(role: string) {
   return this.http.delete(`api/role/${role}`);
 }
 removeFromFavorite(id: number): Observable<{}> {
   return this.http.delete<{}>(`favorite_products/${id}`);
 }
 delete(id: number) {
     return this.http.delete('/api/users/' + id);
 }
 delete(path): Observable<any> {
   return this.http.delete(
     `${environment.api_url}${path}`
   ).pipe(catchError(this.formatErrors));
 }
Example #15
0
 private makeDELETE<T>(url: string): Promise<OperationResponse<T>> {
   return this.http.delete(url, this.getHttpOptions()).toPromise()
     .then((response: OperationResponse<T>) => response)
     .catch(error => Promise.resolve(this.buildFailedResponse(error.message)));
 }
 removeEmbeddedApp(backendId: string, embeddedAppName: string) {
   return this.http.delete(`${RCCConfig.getRogerthatApiUrl(backendId)}/embedded-apps/${embeddedAppName}`).pipe(
     map(() => embeddedAppName),
   );
 }
 delete(codigo: number) {
   return this.http.delete(`${LUF_API}/produtos/${codigo}`);
 }
 delete(personId: number): Observable<void> {
   return this.http.delete<void>(buildUrl(personId));
 }
 deleteThreshold(threshold: Threshold): Observable<void> {
   const url = `/threshold/deleteThreshold?thresholdId=${threshold.id}`;
   return this.http.delete(url).pipe(catchError(error => this.handleError(error)));
 }
Example #20
0
 deleteReleve(id) {
   return this._api.delete(`${AppConfig.API_ENDPOINT}/occtax/releve/${id}`);
 }
Example #21
0
 public async delete(id: number) {
     return await this.httpClient.delete<boolean>(`/api/${id}`).pipe(first()).toPromise();
 }
 deleteComponent(id) {
 	return this.http.delete('http://localhost:3000/api/components/' + id);
 }
Example #23
0
 deleteTasks(_id :string){ //returning Observable
   return this.http.delete<Task>('http://localhost:3000/api/task/'+_id);
 }
Example #24
0
 deleteSnapshot(poolName, rbdName, snapshotName) {
   return this.http.delete(
     `api/block/image/${poolName}/${rbdName}/snap/${snapshotName}`,
     { observe: 'response' });
 }
 deleteCat(cat: Cat): Observable<any> {
   return this.http.delete(`/api/cat/${cat._id}`, { responseType: 'text' });
 }
 public deletePolicy(id: string): Observable<Object> {
   let policiesUrl = environment.apiBaseUrl + "/api/Policies/" + id;
   // The bearer interceptor automatically adds the relevant JWT
   return this.httpClient.delete(policiesUrl);
 }
Example #27
0
 delete(value: T): Observable<T> {
     return this.http.delete<T>(`${this.baseUrl}/${this.getId(value)}`);
 }
 public deleteClient(id: string): Observable<Object> {
   let clientUrl = environment.apiBaseUrl + "/api/Clients/" + id;
   return this.httpClient.delete(clientUrl);
 }
 delete(id: number) {
     return this.http.delete(this.url + '/delete/' + id);
 }
 removePizza(payload: Pizza): Observable<Pizza> {
   return this.http
     .delete<any>(`/api/pizzas/${payload.id}`)
     .pipe(catchError((error: any) => Observable.throw(error.json())));
 }