Example #1
0
 delete(login: string): Observable<Response> {
     return this.http.delete(`api/users/${login}`);
 }
 cancelAllRequestsDispatch(studentID) {
   return this.http.delete('/api/instantsessions/' + studentID)
     .subscribe(() => this.syncStudentRequestsDispatch(studentID));
 }
 deleteCategory(category: Category) {
   return this.http.delete(`${BASE_URL}${category.id}`)
     .map(res => res.json())
     .toPromise();
 }
Example #4
0
 delete(id: number) {
     return this.http.delete('/api/users/' + id, this.jwt()).map((response: Response) => response.json());
 }
 deleteData(id) {
     return this._http.delete('http://jsonplaceholder.typicode.com/posts/1')
         .toPromise()
         .then(response => response.json())
         .catch(this.handleError);
 }
Example #6
0
 deleteLaboratory(id: number){
     return this.http.delete(`/api/laboratory/${id}`).map(res=>res.json());
 }
Example #7
0
 removeQueueElement(element: any) {
   this.http.delete(`api/subject/${this.subject.code}/queue/${element._id}`, {
      headers: authHeaders()
    }).subscribe();
 }
 deleteForm(isProd: boolean, form: TicketForm): Observable<any> {
   return this.http.delete(`${this.base(isProd)}/ticket_forms/${form.id}.json`, this.options());
 }
 deleteScanResultById(id: String) : Observable<any> {
   return this.http.delete(`/api/scanResults/${id}`)
   .map(mapToJSON);
 }
 deleteTodo(id) {
     return this._http.delete('/api/v1/todo/' + id);
 }