Team-uMigrate / umigrate

Source code for the uMigrate project
13 stars 2 forks source link

API: Improve saved, liked, interested, and attending postings endpoints #279

Closed deandrebaker closed 3 years ago

deandrebaker commented 3 years ago

We should create an abstract class API view that renders a list of postings on a get request, and on a post request it accepts a json object with id of the posting and a boolean flag indicating whether to save, like, etc. a posting or not. It should use the data in the json object to add the user to the list of saved users, liked users, etc. for that posting.

We also need to remember to right tests for this.

Terence-Wong commented 3 years ago
Terence-Wong commented 3 years ago

add post request for liking postings, change app_label, add tests