Related to #112 #117
FEEL FREE TO BREAK THIS TASK DOWN TO SEVERAL PULL REQUEST. THIS IS A MEDIUM SIZE ISSUE!
Deliverable: Update the project APIs (/projects/all and projects/all/public) to include tags.
Instructions:
Think about how to store tags in the database. You possibly need to create a new table to store tags, with many to many relationships between tags and projects.
Implement following methods:
Create a new tags table, in the DB, and configure foreign keys.
addNewTags - create new tags table entry, that has projectID and tagID.
getTagsForProjectID - query tags tabs and get all the tags for project.
Make sure the /projects/all and projects/all/public API call getTagsForProjectID and return it as part of the API response. This will be used to display the tags in UI - #117.
In add_project API:
If tag is new call addNewTags.
If tag already exists - query the tags, and associate the tags with the project.
Related to #112 #117 FEEL FREE TO BREAK THIS TASK DOWN TO SEVERAL PULL REQUEST. THIS IS A MEDIUM SIZE ISSUE!
Deliverable: Update the project APIs (
/projects/all
andprojects/all/public
) to include tags.Instructions:
Think about how to store tags in the database. You possibly need to create a new table to store tags, with many to many relationships between tags and projects.
Implement following methods:
tags
table, in the DB, and configure foreign keys.addNewTags
- create new tags table entry, that has projectID and tagID.getTagsForProjectID
- querytags
tabs and get all the tags for project.Make sure the
/projects/all
andprojects/all/public
API callgetTagsForProjectID
and return it as part of the API response. This will be used to display the tags in UI - #117.add_project
API:addNewTags
.If you have any questions as @nurmerey for help!