Creating three routes:
POST /notebooks/:notebookId/collaborators
PUT /notebooks/:notebookId/collaborators/:collaboratorId
DELETE /notebooks/:notebookId/collaborators/:collaboratorId
For now:
only the owner of the notebook can create a collaborator. Eventually, some collaborators might be able to as well (that might depend on their level of permission)
the collaborator can update or delete the collaborator object. Eventually the owner will too. Maybe other collaborators too, depending on permission level?
Aside from that, it is all pretty straightforward.
Creating three routes: POST /notebooks/:notebookId/collaborators PUT /notebooks/:notebookId/collaborators/:collaboratorId DELETE /notebooks/:notebookId/collaborators/:collaboratorId
For now:
Aside from that, it is all pretty straightforward.