# Mutual Fund API test summary

- **When:** 2026-10-25 15:52:59
- **Base:** `http://127.0.0.1:8000/api`
- **Server:** `php artisan serve --port=8000`
- **Created then deleted IDs:** category 8, risk 5, AMC 13, fund 28, commission 2, NAV 20252/20253, FAQ 5, allocation 125, holding 61, dividend 96, change-request 2

Each module has its own log in this folder.

| Module | Result | Log | Notes |
|---|---|---|---|
| Fund Category | **6/6 pass** | `01_fund_category.md` | List, create, show, dropdown, update, delete |
| Risk Profile | **6/6 pass** | `02_risk_profile.md` | List, create, show, dropdown, update, delete |
| AMC | **6/6 pass** | `03_amc.md` | JSON CRUD passed. Extra multipart create with leader image also returned **201** (AMC 14, then deleted). |
| Fund | **6/6 pass** | `04_fund.md` | Previously 500 on missing `mf_funds` columns. Index/create/show/update/delete now work. |
| Selling Agent Commission | **CRUD pass** | `05_selling_agent_commission.md` | Empty list returns **404** by design. Create/show/dropdown/update/delete passed. |
| NAV History | **7/7 pass** | `06_nav_history.md` | First row + second row (calc from previous), show, update all fields, both deletes. Fund snapshot sync works. |
| FAQ | **5/5 pass** | `07_faq.md` | List, create, show, update, delete |
| Sector Allocation | **5/5 pass** | `08_sector_allocation.md` | List, create, show, update, delete against the new test fund |
| Fund Holding | **5/5 pass** | `09_fund_holding.md` | List, create, show, update, delete |
| Dividend History | **5/5 pass** | `10_dividend_history.md` | List, create, show, update, delete |
| AMC Data Change Request | **6/6 pass** | `11_data_change_request.md` | Create, show, dropdown, list, approve, delete-approved **409** |

**Overall:** 62 HTTP assertions passed. The only non-2xx list call is selling-agent empty index **404**, which is existing CRUD style.

## Empty-list convention

Index APIs return **404** + `"No … found"` when the table has no rows. That is existing CRUD style, not a route failure.
