Closed maslindc2 closed 4 months ago
Issue was with Frontend code. The original code did not observe the response...thus the status never appeared. Original Function in the product service.
//save a product in SaveForLater
setSaveForLater(productID: string): Observable<any> {
return this.http.post<any>(`http://localhost:8080/api/customer/save-for-later`, { productID });
}
Fixed Function
//save a product in SaveForLater
setSaveForLater(productID: string): Observable<any> {
return this.http.post<any>(`http://localhost:8080/api/customer/save-for-later`, { productID }, {observe: "response"});
}
Frontend claims that 204 status is not being received. This behavior does not extend to Postman, where 204 status does appear. Requires investigation on both backend and frontend.