Compare commits

...

2 commits

Author SHA1 Message Date
Paul Fauchon
4775b1e0de
Merge 3fdb026ca8 into 70523e77b9 2024-04-13 17:06:23 +00:00
Paul Fauchon
3fdb026ca8 add history endpoint to authenticated-endpoints.md 2023-08-09 14:06:16 +08:00

View file

@ -418,3 +418,33 @@ Example request:
``` ```
Returns 204 on success. Returns 204 on success.
##### GET `/api/v1/auth/history`
Get the history of videos played by the user.
Parameters:
```
max_results: Int32
page: Int32
```
> Schema:
```javascript
[
// video IDs
]
```
##### POST `/api/v1/auth/history/:id`
Set a video as watched.
Returns 204 on success.
##### DELETE `/api/v1/auth/history/:id`
Delete a video from the user watched history.
Returns 204 on success.