Open dowhep opened 8 months ago
One potential thing to think about is that whether the route type should stay the same or not. Ex. Does adding a list of social media still count as a POST operation?
Yeah, a list of new social media URLs would be counted as a POST. An interesting case is if you add 2 new social media URLs, but you edit one other and remove yet another. In that case, I think it's up to the frontend to send the requests accordingly
Ideally, the POST, PATCH, and DELETE routes should take in an array of social medias as requests and perform actions on all of them.
However, the current implementation takes in exactly one social media at a time. When the user edits multiple social medias, the current implementation would send multiple requests, which is slow, costly, and prone to error.