News for hackers. Stuff that matters.
Re:API Design Guide by joncalhoun on Wednesday February 22, 2017 @10:53PM (#13711486)
I prefer the bare minimum approach. That is, if you NEED the user resource to access the event (eg the primary key is like [user ID, event ID]) then nest it in the url. Otherwise if an object has its own ID and could otherwise be accessed independently why not just do so?
Re:API Design Guide by theptip on Thursday February 23, 2017 @01:40PM (#13716468)
The root of this question is: how do you handle M2M relationships in your API?