Get All Courses
GET /api/guest/getCourses/
Request
| Query | Type | Description | 
| currencyCode | string | Required. The currency of the country chosen by the user. | 
| subject | string | Course subject. | 
| rating | string | Course minimum rating. | 
| price | float | Course minimum and/or maximum price. | 
Response
| Response | Type | Description | 
| courses | array | An array of all courses in the system (Filtered, if a filter is applied). | 
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 Popular Courses
GET /api/guest/getPopularCourses/
Request
| Query | Type | Description | 
| currencyCode | string | Required. The currency of the country chosen by the user. | 
| subject | string | Course subject. | 
| rating | string | Course minimum rating. | 
| price | float | Course minimum and/or maximum price. | 
Response
| Response | Type | Description | 
| courses | array | An array of the 4 most popular courses in the system (Filtered if a filter is applied). | 
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 Not Discounted Courses
GET /api/admin/getNotDiscountedCourses/
Request
| Header | Type | Description | 
| Authorization | string | Required. Bearer token to authenticate the administrator. |