Implementing OwnCloud API v1: Mark multiple items as read #17

Closed
opened 7 years ago by dustinwilson · 1 comments
Owner

Mark multiple items as read

  • Method: PUT
  • Route: /items/read/multiple
  • Parameters:
{
  "items": [2, 3] // ids of the items
}
  • Returns: nothing
## Mark multiple items as read * **Method**: PUT * **Route**: /items/read/multiple * **Parameters**: ```js { "items": [2, 3] // ids of the items } ``` * **Returns**: nothing
Owner

The specification is silent on whether bad item IDs are ignored, or cause the entire call to fail. A quick perusal of the reference implementation shows that OCA\News\Controller\ItemApiController::setMultipleRead() ignores errors

The specification is silent on whether bad item IDs are ignored, or cause the entire call to fail. A quick perusal of the reference implementation shows that [`OCA\News\Controller\ItemApiController::setMultipleRead()`](https://github.com/nextcloud/news/blob/1f6af77fff02d227c0638bdb8dd6efebca80e7ce/lib/Controller/ItemApiController.php#L180) ignores errors
jking closed this issue 7 years ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

0000-12-31

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.