You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: