Changes by blabdude - Add userID endpoint

Ajay Ramachandran
2021-06-27 19:23:57 -04:00
parent 812816ad50
commit 6ae5895736

@@ -435,6 +435,33 @@ __________________________________________________________________
__________________________________________________________________
##### **GET** `/api/userID`
**Input** (URL Parameters):
```js
{
username: string, // search string for username
// minimum for non-exact search is 3 characters, maximum is 64 characters
exact: Boolean // if explicitly set to true, searches for exact username
}
```
**Response**:
```js
[{ // Array of this object - maximum 10 results
userName: string,
userID: string
}]
```
**Error codes**:
400: Bad Request (Your inputs are wrong/impossible) or exceed the character limits
404: Not Found
__________________________________________________________________
### VIP Calls
These can only be called by the users added to the VIP table.