altanborali16 / SWE574-Group2

3 stars 0 forks source link

Remove unnecessary back references from get communities list endpoint #84

Open efestrikesback opened 2 hours ago

efestrikesback commented 2 hours ago

We just need id name and desc, this might cause infinite recursion

[ { "id": 1, "name": "Example Community", "communityDescription": "This is an example community", "memberships": [ { "id": { "userId": 1, "communityId": 1 }, "role": "CREATOR" } ], "private": false, "archived": false }, { "id": 2, "name": "Example Community2", "communityDescription": "This is an example community", "memberships": [ { "id": { "userId": 1, "communityId": 2 }, "role": "CREATOR" } ], "private": false, "archived": false }