Skip to navigation

Category List

View as Markdown

The API endpoint {{baseUrl}}/api/course/categories is a POST request that is used to retrieve user categories.

Request

  • Method: POST

  • Base URL: {{baseUrl}}

  • Path: /api/course/categories

  • Headers:

    • Content-Type: application/x-www-form-urlencoded

Request Body

The request body type is x-www-form-urlencoded

  • auth (string):Authentication token is required

Response

The response will be in JSON format and will include the following fields:

  • success (string): Indicates the success status of the request.

  • message (string): Provides additional information.

  • data (array): Contains an array of objects, each representing a course category with the following properties:

    • categoryId (string): The unique identifier for the category.

    • categoryName (string): The name of the category.

Request

This endpoint expects an object.
authstringRequired

Response headers

Keep-AlivestringOptional
X-Powered-BystringOptional

Response

OK
datalist of objects
messagestring
successstring