add history endpoint to authenticated-endpoints.md (#433)

This commit is contained in:
Paul Fauchon 2024-06-26 16:16:35 +08:00 committed by GitHub
parent bc457d6f71
commit 692d980c32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -418,3 +418,33 @@ Example request:
```
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.