Doctors CRUD Module - Work Update

📋 Work Update

Hi Sir,

Today's Work Update

Observation

Request URL: http://localhost:9012/api/doctors/del/undefined Status: 404 Not Found Root Cause: The Delete API is being called without passing the record ID (Primary Key). Once the correct ID is sent from the frontend, the Delete functionality should work properly.
📋 Work Update – Doctors CRUD Module

Hi Sir,

Today's work update:

• ✅ CRUD functionality is mostly completed and working properly.
• ✅ Edit (Update) functionality is working as expected.
• ✅ Insert functionality is working correctly in both CRUD and Vertical views.

• ❌ Delete functionality is not working.
  - DELETE /api/doctors/del/undefined
  - Record ID is not being passed from the frontend.
  - API returns 404 Not Found.
  - Correct Primary Key needs to be sent.

• ⚠ Backend currently has only GET and POST methods.
  - DELETE API
  - PUT/PATCH API
  - Remaining CRUD endpoints.

• ⚠ UI Issue:
  - Save works correctly.
  - Table refreshes correctly.
  - Input fields are not cleared after saving.
  - Previous values remain in the form.
  - Fields should be reset after successful insert.

📝 Reason for the Time Taken

• I reviewed the code while implementing the features.
• I verified the overall flow before proceeding.

📷 Screenshot Observation

Request URL:
http://localhost:9012/api/doctors/del/undefined

Status:
404 Not Found

Root Cause:
Delete API is being called without passing the record ID (Primary Key).

Thank you, Sir.