Let's say 3 tables
session
-------------------------
id | name | date
-------------------------
speaker
-------------------------
id | name
-------------------------
session_speaker
-------------------------
session_id | speaker_id
-------------------------
I've endpoints already in place to do the insertion
POST /session
POST /speaker
What kind of REST request should I create to specify the intention to insert into the JOIN table using POST /session
or any other method (passing session_id
and speaker_id
)
Note: I've a PATCH
request already in place to activate or deactivate a session.
Question: Basically seeking an ideal REST based solution to handle CRUD based operations for the JOIN table, please advise.