1. Instructor
E-Learning
  • Auth
    • Register
      POST
    • Confirm Email
      POST
    • Resend Confirmation Email
      POST
    • Login
      POST
    • Google Login
      GET
    • Google Login By Id Token
      POST
    • Forget Password
      POST
    • Reset Password
      POST
    • Refresh Token
      POST
    • Revoke Refresh Token
      POST
  • Account
    • Get User
      GET
    • Update User
      PUT
    • Delete User
      DELETE
    • Change Password
      PUT
    • Uploade User Image
      POST
    • Delete User Image
      DELETE
    • Become Instructor
      POST
    • Get Users To Admin
      GET
    • Delete User By Admin
      DELETE
    • Add User To Role
      POST
    • Remove User From Role
      DELETE
    • Get instructor Requests
      GET
    • Approve Instructor Request
      PATCH
    • Reject Instructor Request
      PATCH
  • Course
    • Anonymous
      • Get All Courses
      • Get Course By Id
    • Instructor
      • Get Instructor Courses
        GET
      • Get Instructor Course By Id
        GET
      • Create Course
        POST
      • Publish Course
        PATCH
      • Unpublish Course
        PATCH
      • Update Course Info
        PUT
      • Delete Course
        DELETE
      • Add Thumbnail
        POST
      • Delete Thumbnail
        DELETE
    • Admin
      • Get All Courses To Admin
      • Get Course By Id To Admin
      • Delete Course By Admin
      • Restore Soft Deleted Course By Admin
  • Chapter
    • Anonymous
      • Get All Course Chapters
      • Get Chapter
    • Instructor
      • Get All Chapters To Instructor
      • Get Chapter To Instructor
      • Create Chapter
      • Update Chapter
      • Reorder All Chapters
      • Delete Chapter
      • Add Chapter Image
      • Delete Chapter Image
    • Admin
      • Get All Chapters To Admin
      • Get Chapter To Admin
  • Lesson
    • Anonymous
      • Get All Lessons
      • Get Lesson
    • Instructor
      • Get All Lessons To Instructor
      • Get Lesson To Instructor
      • Create Lesson In Chapter
      • Upload Lesson Video
      • Delete Lesson Video
      • Update Lesson
      • Delete Lesson
      • Reorder All Lessons in Chapter
    • Admin
      • Get All Lessons To Admin
      • Get Lesson To Admin
  • Cart
    • Get Cart For User
    • Add Course In Cart
    • Delete Item From User Cart
  • Payment
    • Create Payment Intention
    • Get Payment History
  • Enrollment
    • Enrolle In Course
    • Unenroll From Course
    • Get Enrolled Course Details
    • Get Student Courses
    • Get Enrolled Students in Course
  • Learn
    • Get Student Course Learn
    • Mark Lesson Complete
  • Quiz
    • Create Quiz
    • Get Quiz
    • Update Quiz Info
    • Delete Quiz
    • Active Quiz
    • Deactive Quiz
  • Question
    • Question Types
    • Create Question
    • Get Question
    • Update Question
    • Delete Question
    • Reorder Questions
  • Quiz Attempt
    • Start Quiz Attempt
    • Get Active Quiz Attempt
    • Submit Quiz Attempt
    • Get Quiz Attempt Result
    • Get Quiz Attempts History
  1. Instructor

Get Instructor Course By Id

GET
http://e-learning-platform.tryasp.net/api/instructor/courses/{courseId}
Instructor

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Responses

🟢200Get Instructor Course By Id
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://e-learning-platform.tryasp.net/api/instructor/courses/1' \
--header 'Authorization: Bearer <token>'
Response Response Example
{
    "id": 1,
    "title": "ASP.NET Core Web API – From Zero to Production",
    "description": "A comprehensive course covering RESTful API design, authentication, clean architecture, and deployment with ASP.NET Core.",
    "prerequisites": "Basic C# knowledge, familiarity with HTTP concepts",
    "thumbnail": "",
    "createdAt": "2026-07-16T16:40:17.7430878",
    "updatedAt": null,
    "instructorId": "64bf88e4-b8ac-415a-abf7-e81d6dd27e8b",
    "instructorName": "Ahmed Hassan",
    "studentsCount": 1,
    "isFree": false,
    "price": 299.99,
    "discountPrice": 199.99,
    "totalAmount": 100.00,
    "isPublished": true,
    "chapters": [
        {
            "id": 1,
            "title": "Getting Started with ASP.NET Core",
            "description": "Set up your development environment and understand the ASP.NET Core pipeline.",
            "chapterImage": "",
            "orderNumber": 1,
            "createdAt": "2026-07-16T16:40:17.7439245",
            "updatedAt": null,
            "lessons": [
                {
                    "id": 1,
                    "title": "Introduction & Course Overview",
                    "content": {
                        "contentText": "Welcome to the course. In this lesson we cover what you will learn and how the course is structured.",
                        "videoUrl": "https://www.test.com"
                    },
                    "durationInMinutes": 8.5,
                    "isFree": true,
                    "isMandatory": true,
                    "orderNumber": 1,
                    "createdAt": "2026-07-16T16:40:17.7447106",
                    "updatedAt": null,
                    "quizInfo": null
                },
                {
                    "id": 2,
                    "title": "Setting Up Visual Studio & .NET SDK",
                    "content": {
                        "contentText": "Install Visual Studio 2022 and the .NET 8 SDK. Create your first Web API project.",
                        "videoUrl": "https://www.test.com"
                    },
                    "durationInMinutes": 12,
                    "isFree": true,
                    "isMandatory": true,
                    "orderNumber": 2,
                    "createdAt": "2026-07-16T16:40:17.7448392",
                    "updatedAt": null,
                    "quizInfo": null
                },
                {
                    "id": 3,
                    "title": "Understanding the Middleware Pipeline",
                    "content": {
                        "contentText": "Learn how requests flow through ASP.NET Core middleware and how to add custom middleware.",
                        "videoUrl": "https://www.test.com"
                    },
                    "durationInMinutes": 18,
                    "isFree": false,
                    "isMandatory": true,
                    "orderNumber": 3,
                    "createdAt": "2026-07-16T16:40:17.7448397",
                    "updatedAt": null,
                    "quizInfo": {
                        "id": 1,
                        "title": "Middleware Pipeline Quiz",
                        "totalQuestions": 3,
                        "totalPoints": 5.00
                    }
                }
            ]
        },
        {
            "id": 2,
            "title": "Controllers, Routing & Action Results",
            "description": "Master controller-based API design, attribute routing, and returning proper HTTP responses.",
            "chapterImage": "",
            "orderNumber": 2,
            "createdAt": "2026-07-16T16:40:17.7449231",
            "updatedAt": null,
            "lessons": [
                {
                    "id": 4,
                    "title": "Creating Your First Controller",
                    "content": {
                        "contentText": "Build a simple CRUD controller with [HttpGet], [HttpPost], [HttpPut], [HttpDelete] attributes.",
                        "videoUrl": "https://www.test.com"
                    },
                    "durationInMinutes": 20,
                    "isFree": false,
                    "isMandatory": true,
                    "orderNumber": 1,
                    "createdAt": "2026-07-16T16:40:17.7449251",
                    "updatedAt": null,
                    "quizInfo": null
                },
                {
                    "id": 5,
                    "title": "Attribute Routing Deep Dive",
                    "content": {
                        "contentText": "Explore route templates, route constraints, and route parameters.",
                        "videoUrl": "https://www.test.com"
                    },
                    "durationInMinutes": 15.5,
                    "isFree": false,
                    "isMandatory": true,
                    "orderNumber": 2,
                    "createdAt": "2026-07-16T16:40:17.7449254",
                    "updatedAt": null,
                    "quizInfo": null
                },
                {
                    "id": 6,
                    "title": "ActionResult & IActionResult",
                    "content": {
                        "contentText": "Return Ok, NotFound, BadRequest, Created, and custom status codes from your actions.",
                        "videoUrl": "https://www.test.com"
                    },
                    "durationInMinutes": 14,
                    "isFree": false,
                    "isMandatory": true,
                    "orderNumber": 3,
                    "createdAt": "2026-07-16T16:40:17.7449257",
                    "updatedAt": null,
                    "quizInfo": null
                }
            ]
        },
        {
            "id": 3,
            "title": "Entity Framework Core & Database",
            "description": "Integrate EF Core with SQL Server, write migrations, and implement the Repository pattern.",
            "chapterImage": "",
            "orderNumber": 3,
            "createdAt": "2026-07-16T16:40:17.7449261",
            "updatedAt": null,
            "lessons": [
                {
                    "id": 7,
                    "title": "EF Core Setup & DbContext",
                    "content": {
                        "contentText": "Add EF Core NuGet packages, configure DbContext, and connect to SQL Server.",
                        "videoUrl": "https://www.test.com"
                    },
                    "durationInMinutes": 22,
                    "isFree": false,
                    "isMandatory": true,
                    "orderNumber": 1,
                    "createdAt": "2026-07-16T16:40:17.7449265",
                    "updatedAt": null,
                    "quizInfo": null
                },
                {
                    "id": 8,
                    "title": "Code-First Migrations",
                    "content": {
                        "contentText": "Create entities, generate migrations with Add-Migration, and apply them with Update-Database.",
                        "videoUrl": "https://www.test.com"
                    },
                    "durationInMinutes": 18.5,
                    "isFree": false,
                    "isMandatory": true,
                    "orderNumber": 2,
                    "createdAt": "2026-07-16T16:40:17.7449268",
                    "updatedAt": null,
                    "quizInfo": null
                },
                {
                    "id": 9,
                    "title": "Repository & Unit of Work Pattern",
                    "content": {
                        "contentText": "Implement a generic repository and unit of work to abstract data access from business logic.",
                        "videoUrl": "https://www.test.com"
                    },
                    "durationInMinutes": 25,
                    "isFree": false,
                    "isMandatory": true,
                    "orderNumber": 3,
                    "createdAt": "2026-07-16T16:40:17.744927",
                    "updatedAt": null,
                    "quizInfo": {
                        "id": 2,
                        "title": "Repository Pattern Quiz",
                        "totalQuestions": 2,
                        "totalPoints": 3.00
                    }
                }
            ]
        }
    ]
}
Modified at 2026-07-20 15:13:26
Previous
Get Instructor Courses
Next
Create Course
Built with