Skip to content

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.

Summary

# 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'

Resources

Streams

Operations regarding streams.

Users

Operations regarding users.

GET /users

Description

Gets all registered users.

Responses

HTTP Code Description Schema
200 OK Array<User>
401 Forbidden No Content

Produces

  • application/json

Definitions

User

Name Description Schema
username string
service string
channel string
Clone this wiki locally