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

APIs for Tags Table #61

Open
4 tasks
Safewaan opened this issue Apr 6, 2023 · 0 comments
Open
4 tasks

APIs for Tags Table #61

Safewaan opened this issue Apr 6, 2023 · 0 comments
Labels
Tags Features related to Tags

Comments

@Safewaan
Copy link
Collaborator

Safewaan commented Apr 6, 2023

Summary

  • in Table for Tags #60, we need to create a table for storing tags
  • We also need to create the APIs for the tags

Goals

  • POST API- create tags, should be restricted to admins only.
  • GET API- get all tags, there's should be a filter by status.
  • PUT API- Tags should be editable, restricted to admins only.
  • PUT (DELETE) API- the delete API should really just be a put API that updates the status of the selected tag to "Deleted". This is because actually deleting a tag that is attached to log_records will cause errors if we don't first remove the tag from the log records, so we can still store the tag but just hide it from the user.

Implementation

  • Refer to existing APIs in codebase for implementation.
  • For the delete API, don't worry about removing the tag from the log record itself, we can render the tag on the front-end depending on the status of the log.
  • Blocked by Linking Tags and Log Records Table #63.
@connor-bechthold connor-bechthold self-assigned this Apr 9, 2023
@Safewaan Safewaan added the back-end involves back-end work label May 24, 2023
@Safewaan Safewaan added Homepage Features related to the homepage Tags Features related to Tags and removed back-end involves back-end work Homepage Features related to the homepage labels Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tags Features related to Tags
Projects
None yet
Development

No branches or pull requests

2 participants