As told in assignment , CompletePayment method I have not Implemented but to mimic it I am fetching current user details and using it as response .
If user is already regisetered then check for last start and wanted start date and if less than 30 then tell to come after .
Implemented CompletePayment() as a post request and fetch , as given in assignment , not to implement it.
Flex_app_1.mp4
Flex_app_1.1.mp4
ER Diagram => We can add extra entity as Yoga_Class with attribute Fees and relation Enrolled_in But as fees is fixed therfore I used one entity only .
"name":name,
"age" : age,
"phoneNo" : phoneNo,
"startDate" : startDate,
"batch" : batch
})
PersonalDetails.save()