Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Course EndPoint #3

Open
walleeva2018 opened this issue Jan 12, 2024 · 6 comments
Open

Make Course EndPoint #3

walleeva2018 opened this issue Jan 12, 2024 · 6 comments
Assignees

Comments

@walleeva2018
Copy link
Contributor

No description provided.

@walleeva2018
Copy link
Contributor Author

  • post APi to register a course and its content
  • get API for all courses
  • get API for each course

POC on how to store videos optimally or what should we use to store and show videos ( proper security check)

@anisurrahman75
Copy link
Member

anisurrahman75 commented Feb 1, 2024

type Course struct {
	CourseId           string       `json:"courseId"`
	Title              string       `json:"title"`
	Description        string       `json:"description"`
	Instructors        []Instructor `json:"instructors"`
	StartDate          date.Date    `json:"startDate"`
	EndDate            date.Date    `json:"endDate"`
	Duration           int          `json:"duration"` // Duration in week
	EnrollmentCapacity int          `json:"enrollmentCapacity"`
	EnrollmentStudents []User       `json:"enrollmentStudents"`
	Lessons            []Lesson     `json:"lessons"`
}

type Lesson struct {
	LessonId string     `json:"lessonId"`
	Author   Instructor `json:"author"`
	Title    string     `json:"title"`
	Content  string     `json:"content"`
	Quizzes  []Quiz     `json:"quizzes"`
}

type Quiz struct {
	QuizId    string     `json:"quizId"`
	Author    Instructor `json:"author"`
	Questions []Question `json:"questions"`
}

type Question struct {
	QuestionId    string     `json:"questionId"`
	Author        Instructor `json:"author"`
	Ques          string     `json:"ques"`
	Options       []string   `json:"options"`
	CorrectOption string     `json:"correctOption"`
}

@anisurrahman75
Copy link
Member

@walleeva2018 Am i missing some filed, Suggest me if any?

@walleeva2018
Copy link
Contributor Author

walleeva2018 commented Feb 8, 2024

Replace
[startData , endDate] => [Batch]

Add to courseData
referenceLinks
prize
prerequisites
level( beginner, intermediate...)

Instead of lessons it should be modules
each modules should have lessons

Quizzes should have totlal marks , correct answer etc

@anisurrahman75
Copy link
Member

anisurrahman75 commented Mar 26, 2024

package course

type Course struct {
	UUID               string    `json:"uuid" bson:"uuid"`
	Name               string    `json:"name" bson:"name"`
	Title              string    `json:"title" bson:"title"`
	Description        string    `json:"description" bson:"description"`
	Instructors        []string  `json:"instructors" bson:"instructors"`
	Moderators         []string  `json:"moderators" bson:"moderators"`
	StartDate          date.Date `json:"startDate" bson:"startDate"`
	EndDate            date.Date `json:"endDate" bson:"endDate"`
	Duration           int       `json:"duration" bson:"duration"` // Duration in week
	EnrollmentStudents []string  `json:"enrollmentStudents" bson:"enrollmentStudents"`
	Lessons            []string  `json:"lessons" bson:"lessons"`
	Price              string    `json:"price" bson:"price"`
}

type Lesson struct {
	UUID    string   `json:"uuid" bson:"uuid"`
	Name    string   `json:"name" bson:"name"`
	Title   string   `json:"title" bson:"title"`
	Content []string `json:"content" bson:"content"`
}

type Content struct {
	UUID string `json:"uuid" bson:"uuid"`
	Name string `json:"Name" bson:"name"`
	Type string `json:"type" bson:"type"` // video, resource, quiz, lab
}

type Quiz struct {
	Questions []string `json:"questions" bson:"questions"`
}

type Question struct {
	UUID           string   `json:"uuid" bson:"uuid"`
	Name           string   `json:"Name" bson:"Name"`
	Options        []string `json:"options" bson:"options"`
	CorrectOptions []string `json:"correctOptions" bson:"correctOptions"`
}

Need some feedback about the course API.

@anisurrahman75
Copy link
Member

@walleeva2018 , @ArnobKumarSaha Bhais,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants