rebus-ink / ink-API

Hobb API Server: backend for the Rebus Reader system
GNU Affero General Public License v3.0
4 stars 5 forks source link

Get notebooks as collab #648

Closed Marie000 closed 3 years ago

Marie000 commented 3 years ago

Fixing it so that the GET /notebooks endpoints can return notebooks that the user is a collaborator on. This is optional, and you need to use a query parameter: GET /notebooks?collaboration=true I did it that way because I had to make a second database query to get the collaboration notebooks, and I didn't want to slow everything down for something that is not even used yet. I might be able to consolidate into a single query, but I am not sure. I will take another look when we start using it. If that works, I will remove the query parameter.