August 2017
Beginner to intermediate
370 pages
8h 37m
English
In this section, you will learn about the different HTTP service APIs which can be used to create, update, and delete one or more server entities by invoking Spring Web APIs.
createDoctor(doctor: Doctor): Observable<Doctor> { let headers = new Headers(); headers.append('Content-Type', 'application/json'); headers.append('Authorization', 'bearer ' + Cookie.get('access_token')); let options = new RequestOptions({ headers: headers }); const url = `${this.doctorsUrl}/new`; return this.http.post(url, doctor, options) .map(res => res.json()) .catch(err => { return Observable.Read now
Unlock full access