by mkhattab · 9y ago · 0 comments
POSTing to '/courses' creates a new course. However POSTing to a 'student/1234/courses' creates a relationship/association between a student and a course.
So, it's two different things IMO and not a duplication of logic.
See here for more information:
http://jsonapi.org/format/upcoming/#crud-updating-to-many-re...