Open armintalaie opened 5 days ago
Tagging System for courses
Add tagging functionality at the course level to organize course content
course_tags
id
course_id
name
colour
created_at
updated_at
parent_id
These will be under /courses/{course_id}/tags:
/courses/{course_id}/tags
[x] POST: create a new tag for course
POST
[x] GET: list all tags for course
GET
[x] PATCH /{tag_id}: update course tag
PATCH /{tag_id}
[x] DELETE /{tag_id}: delete course tag
DELETE /{tag_id}
[ ] GET /{tag_id}/content: get tagged content
GET /{tag_id}/content
Tasks:
Tagging System for courses
Overview
Add tagging functionality at the course level to organize course content
Database Tables
course_tags
table: store course-level tagsid
: UUID // this can actually be an intcourse_id
: UUID (foreign key)name
: textcolour
: text (optional)created_at
,updated_at
timestampsparent_id
Default is NULLAPI Endpoints
These will be under
/courses/{course_id}/tags
:[x]
POST
: create a new tag for course[x]
GET
: list all tags for course[x]
PATCH /{tag_id}
: update course tag[x]
DELETE /{tag_id}
: delete course tag[ ]
GET /{tag_id}/content
: get tagged contentTasks: