-
Notifications
You must be signed in to change notification settings - Fork 24
Admin API
xDashh edited this page Sep 7, 2018
·
8 revisions
This page describes API endpoints that require admin permissions to access. This would be used by the admin web interface, which is being worked on over at https://github.com/MemeLabs/Rustla2/tree/admin.
# rename users
$ curl 'https://strims.gg/api/admin/profiles/oldName/username' --data '{"username": "newName"}' -H "Cookie: jwt=XXX"
# modify streams
$ curl 'https://strims.gg/api/admin/streams/twitch/admin' --data '{"hidden":false}' -H 'Cookie: jwt=XXX'
Operations regarding streams.
Operations regarding users.
GET /users
Gets all registered users.
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | OK | Array<User> |
| 401 | Forbidden | No Content |
application/json
| Name | Description | Schema |
|---|---|---|
| username | string | |
| service | string | |
| channel | string |