Update [[ https://www.mediawiki.org/wiki/Extension:OAuth | Extension:OAuth ]] with documentation for new endpoints added for T257982
### Notes
#### List clients
GET /oauth2/client
Example: `curl -H "Accept: application/json" --cookie "<session cookie value>" <scheme/host/port/scriptpath>/rest.php/oauth2/client?oauth_version=2`
Query param: `oauth_version`, can be `1` or `2`, defaults to `1`
Response example:
```
{
"clients": [
{
"email": "admin@example.com",
"name": "TestAppOne",
"version": "1",
"callback_url": "http://default.web.mw.localhost:8080/mediawiki",
"description": "Test",
"stage": 0,
"oauth_version": 2,
"registration_formatted": "23:04, 17 June 2020",
"allowed_grants": null,
"scopes": null,
"restrictions": {}
}
],
"total": 1
}
```
#### Reset secret
POST /oauth2/client/{client ID}/reset_secret
Example: `curl -H "Accept: application/json" --cookie "<cookie>" -X POST -F reason=<reason> <scheme/host/port/scriptpath>/rest.php/oauth2/client/<client id>/reset_secret`
Response example:
```
{
"name": "TestFromCurl1807",
"client_key": "xxx",
"secret": "xxx"
}
```
#### Create client
POST /oauth2/client
Example: `curl -H "Accept: application/json" --cookie "<cookie>" -X POST -F name=<name> -F description=<description> -F email=<email> -F is_confidential=<0 or 1> -F grant_types=<grant_types> -F scopes=<scopes> -F callback_url=<callback url> <scheme/host/port/scriptpath>/rest.php/oauth2/client`
Response example:
```
{
"name": "TestFromCurl1807",
"client_key": "xxx",
"secret": "xxx"
}
```