1. Courses
SkillForge
  • SkillForge
  • Auth
    • Register
      POST
    • Login
      POST
  • me
    • Courses
      • Enroll course
      • Get course progress
    • Units
      • Start unit
      • Complete unit
    • Get me
      GET
    • Update me
      PATCH
    • Get xp
      GET
    • Get badges
      GET
    • Get recommendations
      GET
  • Onboarding Quiz
    • Get questions
      GET
    • Save answers
      POST
  • Courses
    • Get courses
      GET
    • Get enrolled courses
      GET
    • Get course
      GET
    • Get course units
      GET
  • Units
    • Get unit
      GET
  • Schemas
    • Schemas
      • Pet
      • ApiResponse
      • Category
      • Tag
      • Order
      • User
    • UserArray
      • UserArray
  1. Courses

Get course units

Developing
GET
/courses/{courseId}/units
This endpoint is meant for public. Unenrolled learners can get the units just as a brief info, they can't start or see the contents.

Request

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

Responses

🟢200
application/json
Body

🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:6567/api/v1/courses//units' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "courseId": "10000000-0000-0000-0000-000000000001",
    "units": [
        {
            "id": "11000000-0000-0000-0000-000000000001",
            "title": "Getting Started with HTML",
            "summary": "Learn the basics of HTML including tags, elements, and document structure",
            "type": "module",
            "estimatedMinutes": 45,
            "position": 1
        },
        {
            "id": "11000000-0000-0000-0000-000000000002",
            "title": "Build Your First Web Page",
            "summary": "Create a simple HTML page with headings, paragraphs, and links",
            "type": "exercise",
            "estimatedMinutes": 30,
            "position": 2
        },
        {
            "id": "11000000-0000-0000-0000-000000000003",
            "title": "HTML & CSS Knowledge Check",
            "summary": "Test your understanding of HTML and CSS basics with this quiz",
            "type": "assessment",
            "estimatedMinutes": 20,
            "position": 3
        },
        {
            "id": "11000000-0000-0000-0000-000000000004",
            "title": "Web Development Fundamentals Final Exam",
            "summary": "Comprehensive exam covering all topics from the course",
            "type": "final_exam",
            "estimatedMinutes": 60,
            "position": 4
        }
    ]
}
Modified at 2026-04-06 17:50:27
Previous
Get course
Next
Get unit
Built with