every time when I save the data through client side it gives me error 404 mean: Required request body is missing, but when I save data through postman it successfully saves, I don’t understand where the mistake is here is my code, please me out
saveRem(Obj:Reminderdata) {
this.data={"name":this.name,"doctor_name":this.doctor_name,"hospital_clinic":this.hospital_clinic,"date":this.date,
"med_name":this.med_name,"med_type":this.med_type,"med_quantity":this.med_quantity,
"timesperday":this.takingadose,"time":this.time,"routine":this.routine,"dose":this.dose,"repeat":this.repetition,
"startdate":this.mysdate,"enddate":this.myedate};
this.data=Obj;
this.database.savepatientData(this.data).subscribe
((result) => {
console.log(result);
this.data=new Reminderdata();
}, (err) => {
console.log(err);
});
on this page, I am passing the patient data, medicine data and then save it into the database.