Add user info endpoint

Ajay Ramachandran
2021-05-24 16:07:45 -04:00
parent 2542f6acf5
commit 5766ca3699

@@ -191,6 +191,41 @@ __________________________________________________________________
__________________________________________________________________
##### **GET** `/api/userInfo`
**Input**:
```js
{
userID: string //the local user id
}
```
**OR**
```js
{
publicUserID: string
}
```
**Response**:
```js
{
userID: string, // the public user ID
userName: string,
minutesSaved: float,
segmentCount: int,
viewCount: int,
warnings: int,
reputation: float,
vip: boolean,
}
```
**Error codes**:
400: Bad inputs
__________________________________________________________________
##### **GET** `/api/getViewsForUser`
**Input**: