Categories List
Retrieve a list of active categories that have paid courses.
GET /v1/mobile/category
Response
{
"success": true,
"message": "تم جلب البيانات بنجاح.",
"data": [
{
"id": "eb8fec80-b43f-11ec-8195-abf33b22a6c8",
"name": "مواد الشهر"
},
{
"id": "e4e0bb10-db44-11ec-91f3-dff7c0899e8e",
"name": "المواد المتاحة للاشتراك"
},
{
"id": "265f31ad-1b4e-355f-844a-af92d88de7b0",
"name": "نية الثراء"
},
{
"id": "a0c9414c-c43b-3916-91e5-4a95bd9e4908",
"name": "نية النجاح"
},
{
"id": "b55070c4-144c-3ceb-a8e6-2edf7dd9e740",
"name": "نية الروحانية"
},
],
"status_code": 200
}
Notes
- Only returns categories that have active, paid courses
- Categories are ordered by priority
- Categories with 'show-index' name are excluded
- The response includes basic category information (id and name)
Example Implementation Flow
- Category Listing
- Application sends request to
/v1/mobile/category - Display categories in a list or dropdown format
- Use the response data to populate UI elements
- Cache the response if needed for better performance
- Use selected category for course filtering or categorization
- Application sends request to