# AMC — API test log

- **When:** 2026-10-25 15:52:59
- **Base:** `http://127.0.0.1:8000/api`
- **Result:** 6 passed / 0 failed / 6 total (JSON, no leader image)
- **Follow-up:** multipart create with `leaders[0][image]` also passed (AMC 14, HTTP 201, image on fi_bo). That row was deleted after the check.

| Action | Method | Path | HTTP | Time | Result |
|---|---|---|---|---|---|
| List | GET | `/mf-amc/mf-amc-index` | 200 | 282ms | **PASS** |
| Create | POST | `/mf-amc/mf-amc-store` | 201 | 273ms | **PASS** |
| Show | GET | `/mf-amc/mf-amc-show/13` | 200 | 236ms | **PASS** |
| Dropdown | GET | `/mf-amc/mf-amc-dropdown` | 200 | 241ms | **PASS** |
| Update | POST | `/mf-amc/mf-amc-update/13` | 200 | 268ms | **PASS** |
| Delete | DELETE | `/mf-amc/mf-amc-delete/13` | 200 | 230ms | **PASS** |

## Responses

### List (`GET /mf-amc/mf-amc-index`)

```json
{
  "status": true,
  "data": [
    {
      "id": 5,
      "name": "CWT Asset Management Company Ltd.",
      "slug": "cwt",
      "partner_code": "CWT",
      "color_code": "#117A65",
      "founded_year": 2018,
      "location": "Dhaka",
      "data_source_type": "SCRAPE",
      "website_url": "https://www.cwtamc.com",
      "is_launch_partner": 0,
      "agreed_commission_share": null,
      "management_fee_rate": null,
      "description": "CWT Asset Management Company Limited is an asset management company in Bangladesh that manages mutual funds and provides portfolio management services to individual and institutional investors. It also manages provident, gratuity and pension funds for org",
      "philosophy": "CWT Asset Management describes its philosophy as value through disciplined investing. It looks for well-run companies in healthy sectors and holds them for the long term rather than trading on short-term market moves.\n\n01. Value and growth together\nThe ap",
      "onboarding_status": "N",
      "status": "A",
      "create_by": null,
      "update_by": null,
      "create_at": "2026-10-10T11:04:20.000000Z",
      "update_at": "2026-10-10T11:04:22.000000Z",
      "created_by": null,
      "updated_by": null,
      "leaders": [
        {
          "id": 12,
          "amc_id": 5,
          "leader_name": "Md. Tareq Ibrahim",
          "position": "Chief Executive Officer",
          "image": "https://bini.com.bd/images/amc/cwt_tareq_ibrahim.png",
          "slug": "md-tareq-ibrahim",
          "profile_link": "https://www.linkedin.com/in/tareq-ibrahim-ab859b21/",
          "status": "A",
          "create_by": null,
          "update_by": null,
          "create_at": "2026-10-10T11:04:22.000000Z",
          "update_at": "2026-10-10T11:04:22.000000Z"
        }
      ]
    },
    {
      "id": 2,
      "name": "EDGE AMC Limited",
      "slug": "edge",
      "partner_code": "EDGE",
      "color_code": "#1B4F72",
      "founded_year": 2018,
      "location": "Dhaka",
      "data_source_type": "SCRAPE",
      "website_url": "https://www.edgeamc.com",
      "is_launch_partner": 0,
      "agreed_commission_share": null,
      "management_fee_rate": null,
      "description": "EDGE AMC Limited is an asset management company in Bangladesh that manages mutual funds and separately managed accounts for institutions, high-net-worth individuals and retail investors. It was set up to offer local investors the kind of long-term, resear",
      "philosophy": "EDGE Asset Management follows research-driven, long-term, high-conviction investing. From roughly 360 listed companies in Bangladesh, it selects 10 to 15 businesses it is willing to hold through market cycles.\n\n01. Governance first\nCompanies are screened ",
      "onboarding_status": "N",
      "status": "A",
      "create_by": null,
      "update_by": null,
      "create_at": "2026-10-06T00:09:41.000000Z",
      "update_at": "2026-10-06T03:26:37.000000Z",
      "created_by": null,
      "updated_by": null,
      "leaders": [
        {
          "id": 4,
          "amc_id": 2,
          "leader_name": "Ali Imam, CFA",
          "position": "Managing Director & CEO",
          "image": "https://bini.com.bd/images/amc/edge_ali_imam.png",
          "slug": "ali-imam-cfa",
          "profile_link": "https://www.linkedin.com/in/ali-imam-cfa-0487799/",
          "status": "A",
          "create_by": null,
          "update_by": null,
          "create_at": "2026-10-06T03:26:37.000000Z",
          "update_at": "2026-10-06T03:26:37.000000Z"
        },
        {
          "id": 5,
          "amc_id": 2,
          "leader_name": "Asif Khan, CFA",
          "position": "Chairman",
          "image": "https://bini.com.bd/images/amc/edge_asif_khan.png",
          "slug": "asif-khan-cfa",
          "profile_link": "https://www.linkedin.com/in/akblog/",
          "status": "A",
          "create_by": null,
          "update_by": null,
          "create_at": "2026-10-06T03:26:37.000000Z
```

### Create (`POST /mf-amc/mf-amc-store`)

```json
{
  "status": true,
  "message": "AMC created successfully",
  "data": {
    "id": 13,
    "name": "API Test AMC 155241",
    "slug": "api-test-amc-155241",
    "partner_code": "T55241",
    "color_code": "#1A73E8",
    "founded_year": 2009,
    "location": "Dhaka",
    "data_source_type": "CMS",
    "website_url": "https://example-amc.test",
    "is_launch_partner": 0,
    "agreed_commission_share": null,
    "management_fee_rate": null,
    "description": null,
    "philosophy": null,
    "onboarding_status": "Y",
    "status": "A",
    "create_by": null,
    "update_by": null,
    "create_at": "2026-10-25T09:52:45.000000Z",
    "update_at": "2026-10-25T09:52:45.000000Z",
    "created_by": null,
    "updated_by": null,
    "leaders": []
  }
}
```

### Show (`GET /mf-amc/mf-amc-show/13`)

```json
{
  "status": true,
  "data": {
    "id": 13,
    "name": "API Test AMC 155241",
    "slug": "api-test-amc-155241",
    "partner_code": "T55241",
    "color_code": "#1A73E8",
    "founded_year": 2009,
    "location": "Dhaka",
    "data_source_type": "CMS",
    "website_url": "https://example-amc.test",
    "is_launch_partner": 0,
    "agreed_commission_share": null,
    "management_fee_rate": null,
    "description": null,
    "philosophy": null,
    "onboarding_status": "Y",
    "status": "A",
    "create_by": null,
    "update_by": null,
    "create_at": "2026-10-25T09:52:45.000000Z",
    "update_at": "2026-10-25T09:52:45.000000Z",
    "created_by": null,
    "updated_by": null,
    "leaders": []
  }
}
```

### Dropdown (`GET /mf-amc/mf-amc-dropdown`)

```json
{
  "status": true,
  "message": "AMC dropdown retrieved successfully",
  "data": [
    {
      "id": 13,
      "name": "API Test AMC 155241",
      "slug": "api-test-amc-155241",
      "partner_code": "T55241"
    },
    {
      "id": 5,
      "name": "CWT Asset Management Company Ltd.",
      "slug": "cwt",
      "partner_code": "CWT"
    },
    {
      "id": 2,
      "name": "EDGE AMC Limited",
      "slug": "edge",
      "partner_code": "EDGE"
    },
    {
      "id": 1,
      "name": "Ekush Wealth Management Limited",
      "slug": "ekush",
      "partner_code": "EKUSH"
    },
    {
      "id": 7,
      "name": "IDLC Asset Management Limited",
      "slug": "idlc",
      "partner_code": "IDLC"
    },
    {
      "id": 3,
      "name": "Shanta Asset Management Limited",
      "slug": "shanta",
      "partner_code": "SHANTA"
    },
    {
      "id": 6,
      "name": "UCB Asset Management Limited",
      "slug": "ucb",
      "partner_code": "UCB"
    },
    {
      "id": 11,
      "name": "VIPB Asset Management",
      "slug": "vipb-asset-management",
      "partner_code": null
    },
    {
      "id": 4,
      "name": "VIPB Asset Management Limited",
      "slug": "vipb",
      "partner_code": "VIPB"
    }
  ]
}
```

### Update (`POST /mf-amc/mf-amc-update/13`)

```json
{
  "status": true,
  "message": "AMC updated successfully",
  "data": {
    "id": 13,
    "name": "API Test AMC 155241 Ltd",
    "slug": "api-test-amc-155241",
    "partner_code": null,
    "color_code": "#1A73E8",
    "founded_year": 2009,
    "location": null,
    "data_source_type": "CMS",
    "website_url": null,
    "is_launch_partner": 0,
    "agreed_commission_share": null,
    "management_fee_rate": null,
    "description": null,
    "philosophy": null,
    "onboarding_status": "Y",
    "status": "A",
    "create_by": null,
    "update_by": null,
    "create_at": "2026-10-25T09:52:45.000000Z",
    "update_at": "2026-10-25T09:52:46.000000Z",
    "created_by": null,
    "updated_by": null,
    "leaders": []
  }
}
```

### Delete (`DELETE /mf-amc/mf-amc-delete/13`)

```json
{
  "status": true,
  "message": "AMC deleted successfully"
}
```

### Create with leader image (`POST /mf-amc/mf-amc-store` multipart)

```json
{
  "status": true,
  "message": "AMC created successfully",
  "data": {
    "id": 14,
    "name": "API Test AMC Image",
    "slug": "api-test-amc-image",
    "leaders": [
      {
        "id": 21,
        "leader_name": "Jane Doe",
        "position": "CEO",
        "image": "http://127.0.0.1:8001/api/images/mfAmcLeaders/1792922020_amc_leader_14_0.png",
        "status": "A"
      }
    ]
  }
}
```

Deleted afterward: `DELETE /mf-amc/mf-amc-delete/14` → AMC deleted successfully.
