Code2Gether-Discord / JokesOnYou

A learning project, A jokes website build as a team project.
12 stars 11 forks source link

Add: UserJokeTag Feature. #207

Closed HellHunterMax closed 2 years ago

HellHunterMax commented 2 years ago

So this PR changes the Create Tag method. UserStory:

  1. User on the website is on a joke and would like to add a Tag to it.
  2. User fills in a Name ( Dad) and presses enter.
  3. Website: calls the Create Tag method api/Tag POST with the name of the tag and the Joke Id.
  4. Server: will check if the Tag exists and create it if not.
  5. Server: Check if the Connection exists And create it if not.
  6. Server: if it does Exist it will add a like to the Connection through LikeForTag.
  7. server: will send back the Created or Liked Tag.
  8. Website: Will show the Liked/Created Tag with the Joke.

Added:

This needs a few tweaks to make it work good.

Comment: The UserJokeTag should be deleted as soon as likes reaches 0;

closes #89