Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 612 Bytes

show-courses.md

File metadata and controls

39 lines (32 loc) · 612 Bytes

Show Courses

Returns a list of Courses.

URL : /api/courses

Method : GET

Success Response

Code : 200 OK

Sample Response Body :

{
    "success": true,
    "data": [
        {
            "id": 1,
            "code": "code1",
            "name": "Course1",
            "creditScore": 4,
            "instructor": {
                "id": 1
            }
        },
        {
            "id": 2,
            "code": "code2",
            "name": "Course2",
            "creditScore": 5,
            "instructor": {
                "id": 2
            }
        }
    ]
}