We want to be able to track if a user has viewed/read an item. To do this we need a new endpoint.
My suggestion is to make the endpoint PATCH /items/mark-seen
, the patch request body will contain an array of item ids.
E.g.:
{
items: ['item id here', 'item id here']
}
There's already a PR on the front-end: https://github.com/shareworks/projectcampus-web/pull/266.