Instructor Service
Get All Courses
GET /api/instructor/getCourses
Request
| Header |
Type |
Description |
Authorization |
string |
Required. Bearer token to authenticate the instructor. |
| Query |
Type |
Description |
currencyCode |
string |
Required. The currency of the country chosen by the instructor. |
Response
| Response |
Type |
Description |
courses |
array |
An array of all courses in the system. |
Response Example:-
[
{
"_id": {
"$oid": "638437ae10fb773ce954762b"
},
"Title": "Python For Beginners - Learn Programming From Scratch",
"InstructorName": "Slim Abdelzaher",
"Description": "Python For Beginners : This course is meant for absolute beginners in programming or in python.",
"Rating": 4.5,
"NumberOfReviews": 2,
"PriceInUSD": 19.99,
"Subject": "Software Development",
"Subtitles": [
{
"subtitle": "Programming fundamentals",
"duration": 40,
},
.
.
.
],
"ImgURL": "<https://img-c.udemycdn.com/course/240x135/836376_8b97_4.jpg>",
"Discount": 0,
"InstructorUsername": "slim.abdelzaher",
"CoursePreviewLink": "<https://www.youtube.com/watch?v=ErMwWXQxHp0>",
"Ratings": [
{
"TraineeUsername": "omar.elrasas",
"Rating": 5,
"Review": "Lorem ipsum ..."
},
.
.
.
],
"DiscountExpiryDate": {
"$date": {
"$numberLong": "946692000000"
}
},
"NumberOfEnrolledStudents": 3064,
"TotalMinutes": 156
},
.
.
.
]
Get Instructor Courses
GET /api/instructor/getInstructorCourses
Request
| Query |
Type |
Description |
instrusername |
string |
Required. Username of the instructor. |
currencyCode |
string |
Required. The currency of the country chosen by the instructor. |
Response
| Response |
Type |
Description |
courses |
array |
An array of this instructor courses in the system. |
Response Example:-
[
{
"_id": {
"$oid": "638437ae10fb773ce954762b"
},
"Title": "Python For Beginners - Learn Programming From Scratch",
"InstructorName": "Slim Abdelzaher",
"Description": "Python For Beginners : This course is meant for absolute beginners in programming or in python.",
"Rating": 4.5,
"NumberOfReviews": 2,
"PriceInUSD": 19.99,
"Subject": "Software Development",
"Subtitles": [
{
"subtitle": "Programming fundamentals",
"duration": 40,
"youtubeLink": "<https://youtu.be/5DQHlGcbIMs>",
"description": "test3test3test3"
},
.
.
.
],
"Exercises": [
{
"exerciseName": "Languages and Data Types",
"questions": [
{
"question": "How to declare an integer variable x ?",
"answer": "3",
"choices": [
"string x = 3",
"int x = 3",
"double x = 3.0",
"x = 3"
]
},
.
.
.
]
},
.
.
.
],
"ImgURL": "<https://img-c.udemycdn.com/course/240x135/836376_8b97_4.jpg>",
"Discount": 0,
"InstructorUsername": "slim.abdelzaher",
"CoursePreviewLink": "<https://www.youtube.com/watch?v=ErMwWXQxHp0>",
"Ratings": [
{
"TraineeUsername": "omar.elrasas",
"Rating": 5,
"Review": "Lorem ipsum ..."
},
.
.
.
],
"DiscountExpiryDate": {
"$date": {
"$numberLong": "946692000000"
}
},
"NumberOfEnrolledStudents": 3064,
"TotalMinutes": 156
},
.
.
.
]
Get Instructor Information
GET /api/instructor/getInstructorInfo