Skip to main content

Material Types List

Retrieve a list of active material types.

GET /v1/customer/material-types

Response

{
"success": true,
"message": "تم جلب البيانات بنجاح.",
"data": {
"materialTypes": [
{
"id": "0a2f87c0-ef59-11ef-b8fb-673a57d850d4",
"name": "مادة بسيطة"
},
{
"id": "0d4b2290-ef59-11ef-be0e-a34e2cd4a7a6",
"name": "مادة معقدة"
}
]
},
"status_code": 200
}

Notes

  • Only active material types are returned
  • The response includes basic material type information (id and name)

Example Implementation Flow

  1. Material Types Listing
    • Application sends request to /v1/customer/material-types
    • Display material types in a list or dropdown format
    • Use the response data to populate UI elements
    • Cache the response if needed for better performance
    • Use selected material type for course filtering or categorization