In order to show a hint in the Entity List that a report/dashboard was shared, we need endpoints which:
- take a list of Report or Dashboard IDs
- response with an object where each of the ids has a boolean value if it was shared
AT:
- I can request from Optimize, which reports have been shared, by providing a list of report ids
- I can request from Optimize, which dashboards have been shared by providing a list of dashboard ids
- As a response from both requests, I can see for each ID if it is shared or not
Nice
Still I would like suggest one simplification. Right now, we return a list of object containing the id and the shared status. However, I think it would be sufficient to just have a map linking each id to the status. That would also make it consistent with the other apis and easier for front-end to parse it.