forked from itsfourthidiot/ira
-
Notifications
You must be signed in to change notification settings - Fork 0
Publishing a course
Gauri Pandharinath Bodke edited this page Jun 15, 2022
·
1 revision
Returns json with course details
URL: /api/instructor/course/:courseId/publish
Method: PUT
Authorization required: Yes
Code : 200 Ok
Example:
{
"ID": 4,
"CreatedAt": "2022-02-23T16:49:27.533489286-05:00",
"UpdatedAt": "2022-03-31T16:01:59.905525188-04:00",
"DeletedAt": null,
"title": "Neural",
"description": null,
"isPublished": true,
"publishedAt": null,
"instructorId": 3,
"modules": null
}
Code: 404 not found
Example:
{
"error": "course not found"
}
Code: 400 Bad Request
Example:
{
"error": "course already published"
}
Code: 401 Unauthorized
Example:
{
"error": "Unauthorised access for this course"
}
Code: 401 Unauthorized
Example:
{
"error": "token not found"
}
Code: 401 Unauthorized
Example:
{
"error": "user unauthorized"
}
Code: 500 Internal Server Error
Example:
{
"error": "internal server error"
}
- Sprint Progress:
- Database design
- CI/CD using GitHub Actions
- How to run the project?
- Sprint 3 UI Screenshots
-
Back-end API documentation
- Create an instructor account
- Login to an instructor account
- Create a student account
- Login to a student account
- Get the list of all courses
- Get the list of courses created by an instructor
- Create a course
- Publish a course
- Get course description
- Update the course description by an instructor
- Add video module to the course
- Add quiz module to the course
- Calculate student quiz score
- Get course details
- Get module details
- Check if the student is enrolled in a course
- Enroll a student into a particular course
- Get the list of all courses enrolled by a student