Endpoint(s) for room stats
We currently have already have a /room/<ID>/stats
endpoint. But there a the following issues:
- Backend core doesn't have information about comments
- Stats cannot be retrieved in batches for multiple rooms
A new endpoint is needed which aggregates the most important stats for a room from all services. https://gitlab.com/arsnova/arsnova-backend/-/blob/master/src/main/java/de/thm/arsnova/model/RoomStatistics.java could be a good base but I think we might want to drop the groups here.
Endpoint /api/room/stats?ids=<UUIDs>
Response:
[
{
"roomId": "<UUID>",
"currentParticipants": "123",
"conentCount": 42,
"...": "..."
}
]
Additionally, the existing endpoint's response for a single room should be manipulated to include the comment count.
Edited by Daniel Gerhardt