nss-day-cohort-52 / giffygram-commando-squad

giffygram-commando-squad created by GitHub Classroom
0 stars 0 forks source link

Mark a post as a favorite #9

Closed stevebrownlee closed 3 years ago

stevebrownlee commented 3 years ago

As an authenticated user, I would like to specify that a post is a favorite

Given that a person has provided proper authentication details When the person is viewing the post feed Then there should be a white star icon beneath each post

Given the person wants to mark a post as a favorite When the person clicks on the white star icon beneath a post Then the post should be recorded as a favorite And the white star should change to a yellow star to indiciate it has been favorited

Given the person wants to remove a post as a favorite When the person clicks on the yellow star icon beneath a post Then the post should be removed as a favorite And the yellow star should change to a white star

luciidlou commented 3 years ago

Posts can now be marked favorited and unfavorited while using POST and DELETE to add and remove the corresponding like objects to and from the API!