Httpservice. In this example we are creating a
SearchServiceto interact with the Spotify API.
mapoperator utilized in the pipe, after the
HttpClientservice provides us with the raw response as a string. In order to consume the fetched data we have to convert it to JSON.
HttpClient.get(), there are also
HttpClient.delete(), etc. They all return observables.