My Course List (For the new view)
My Course List (For the new view)
My Course List (For the new view)
The API endpoint https://localhost:8090/api/user/myCourseListis a POST request that is used to retrieve a list of courses available and assigned to the user in the system.
This endpoint returns course details such as name, description, status, and associated organizational or category information.
Use this endpoint to display or manage user’s courses in list views.
Method: POST
Base URL: https://localhost:8090/
Path: /api/User/myCourseList
Headers:
The request body type is x-www-form-urlencoded
idst (integer): id of the user is required
auth (string):Authentication token is required
The response will be in JSON format and will include the following fields:
• success (boolean) Indicates the success of the request.
• courses:
course_id (string) The unique identifier for the course.
code (string) The code associated with the course.
course_name (string) The name of the course.
course_description (string) The description of the course.
course_box_description (string) The box description of the course.
status (string) The status of the course.
selling (string) The selling status of the course.
price (string) The price of the course.
subscribe_method (string) The method for subscribing to the course. (0 = Only Admin, 1 = Requires admin approval, 2 = Free for all),
unsubscribe_method (string) The method for unsubscribing from the course. (0 = Only Admin, 1 = Requires admin approval, 2 = Free for all),
course_edition (string) The edition of the course.
course_type (string) The type of the course.
can_subscribe (string) The subscription availability status. (0 = Closed, 1 = Always open, 2 = Open within sub_start_date & sub_end_date),
sub_start_date (string) The start date for subscription.
sub_end_date (string) The end date for subscription.
date_begin (string) The start date of the course.
date_end (string) The end date of the course.
course_link (string) The link to the course.
img_course (string) The image associated with the course.
category_id (string) The unique identifier for the course category.
category (string) The category name of the course.
enrolled (string) The enrollment status of the course.
dates:
string) Array of dates associated with the course.