Course
Course List
Use this API to get the list of all courses.
GET /course/course-list
Query string parameters
Field | Type | Description |
---|---|---|
firstRecord required | integer | First record to return. Default: 1 |
count required | integer | Number of records to be returned starting from the first record. Default: 20, Max count limit: 100 |
filterData | JSON Array | Search record with following filters:
|
{
"field": {
"courseId": [],
"categoryId": [32, 33],
"title": "string",
"courseCode": "string",
"eligibleForSale": 0,
"status": 1,
"courseType": 1
},
"generic": "string",
"sortByfield": "string",
"sortType": "string"
}
- Response
- Schema
- Error Codes
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": {
"courseList": [
{
"courseId": 12,
"title": "Wonderchef Product Training",
"courseType": "Multiple Subject",
"durationInDays": 30,
"courseCode": "WT001",
"description": "Test",
"trainer": "Mr. Rajesh",
"thumbnail": null,
"eligibleForSale": true,
"status": true,
"availableFrom": "01-01-2018",
"availableTill": "31-12-2022",
"avgRating": 0,
"currency": []
}
],
"totalRecords": 1
},
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}
Field | Type | Description |
---|---|---|
courseId | int | Course ID |
title | string | Course Title |
courseCode | string | Course Code |
description | string | Course Description |
duration | string | course duration |
startDate | date | Course Start date |
endDate | date | Course end date |
eligibleForSale | float | Course Price in INR |
status | bool | Course status |
thumbnail | string | Course thumbnail URL |
trainer | string | Course trainer name |
avgRating | float | Average ratings given by users |
currency | array | Multiple currencies set for course |
totalRecords | int | Count of total records returned |
Code | Description |
---|---|
1003 | "Invalid firstRecord" |
1004 | "Invalid count" |
1005 | "Missing filterData" |
1006 | "Invalid filterData" |
1007 | "Missing filterData – field" |
1008 | "Invalid filterData – field" |
1009 | "Missing filterData – generic" |
1010 | "Invalid filterData – generic" |
1011 | "Missing filterData – sortByfield" |
1012 | "Invalid filterData – sortByfield" |
1013 | "Missing filterData – sortType" |
1014 | "Invalid filterData – sortType" |
For general error details, click here.
Course Details
Use this API to get the list of all courses.
GET /course/{courseId}/detail
Path parameter
Field | Type | Description |
---|---|---|
courseId required | integer | A single course ID |
- Response
- Schema
- Error Codes
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": {
"courseDetail": {
"courseId": 3,
"title": "Human Resource Management",
"courseCode": "101",
"description": "Human Resource Management (HRM, or simply HR).",
"durationInDays": "180",
"startDate": "2017-09-20",
"endDate": "2022-12-31",
"thumbnail": null,
"department": [
{
"departmentId": 38,
"name": "Information Technology",
"status": true
}
],
"designation": [
{
"designationId": 6,
"name": "Senior Manager",
"status": true
}
],
"faq": "",
"demovideo": "",
"features": "",
"trainerName": "Vicky Upadhyay",
"tags": "test,123",
"seoTitle": "anlndanlsd",
"seoDescription": "asndfasd",
"keywords": "abm,sdn,adsf",
"proficiency": [
{
"proficiencyId": 1,
"name": "Level 1",
"status": true
}
],
"competency": [
{
"competencyId": 1,
"name": "Communication",
"status": true
}
],
"subject": [
{
"subjectId": 1,
"name": "Test"
}
],
"currency": [
{
"currencyCode": "INR",
"price": "500",
"isDefault": 1
}
]
}
},
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}
Field | Type | Description |
---|---|---|
courseId | int | Course ID |
title | string | Course Title |
courseCode | string | Course Code |
description | string | Course Description |
duration | string | Course Duration |
startDate | date | Course Start date |
endDate | date | Course end date |
thumbnail | string | Course thumbnail URL |
department | JSON Array | |
departmentId | integer | |
name | string | |
designation | JSON Array | |
designationId | integer | |
name | string | |
faq | string | Course Faq |
demovideo | string | Demo video URL |
features | string | Course feature as HTML |
trainerName | string | Display trainee name |
tags | string | Tags for search |
seoTitle | string | Course SEO |
seoDescription | string | Course SEO |
keywords | string | Course SEO |
currency | JSON Array | |
currencyCode | string | |
price | float | |
isDefault | integer | |
proficiency | JSON Array | |
proficiencyId | integer | |
name | string | |
status | integer | |
competency | JSON Array | |
competencyId | integer | |
name | string | |
status | integer | |
subject | JSON Array | |
subjectId | integer | |
name | string |
Code | Description |
---|---|
1001 | "Missing courseId" |
1002 | "Invalid courseId" |
For general error details, click here.