I'm currently working on making a request to the backend for a boolean value using observables, but I'm struggling to figure out the best approach between .map and .subscribe.
return this.http.put({url}, credentials, this.requestOptions)
.catch((error: any) => Observable.throw(error.message)).map((res...
The API call returns a boolean value.
@PutMapping("/url")
public Boolean api(@RequestBody Credentials credentials)
How can I retrieve that boolean value in TypeScript?