Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 596 Bytes

File metadata and controls

25 lines (15 loc) · 596 Bytes

HTTP -- the way angular connects to the backend.

ANATOMY of a http Request: --

  * URL (API Endpoint) -- /posts/1

  * http Verb -- POST, GEt, PUT, ---

  * Headers (Metadata) -- { "Content-Type": "application/json" }

  * Body (POST, PUT, PATCH) -- { title: "New Post" }

different Ways

  *HEADERS: HttpHeaders({})
  *params: HttpParams({})
  *observe: 'response'
  *