82 lines
1.1 KiB
Plaintext
82 lines
1.1 KiB
Plaintext
=== USER ===
|
|
|
|
>>> POST /user/
|
|
{
|
|
username: <String>
|
|
password: <String>
|
|
}
|
|
|
|
>>> GET /user/:uid
|
|
{}
|
|
|
|
>>> PUT /user/:uid
|
|
{
|
|
username: <?String>
|
|
passowrd: <?String>
|
|
}
|
|
|
|
>>> DELETE /user/:uid
|
|
{}
|
|
|
|
=== USER AUTHENTICATION ===
|
|
|
|
>>> POST /user/token
|
|
{
|
|
username: <String>
|
|
password: <String>
|
|
}
|
|
|
|
|
|
=== CHANNEL ===
|
|
|
|
|
|
>>> POST @token:/channel/
|
|
{
|
|
link: <String>
|
|
name: <String>
|
|
}
|
|
|
|
>>> GET @token:/channel/:cid --> channel specific data
|
|
>>> GET @token:/channel/ --> all available channels for user
|
|
{}
|
|
|
|
>>> PUT @token:/channel/:cid
|
|
{
|
|
link: <?String>
|
|
name: <?String>
|
|
}
|
|
|
|
>>> DELETE @token:/channel/:cid
|
|
{}
|
|
|
|
|
|
|
|
|
|
=== CHANNEL <> USER ===
|
|
|
|
|
|
>>> POST @token:/channel/subscribe/:cid
|
|
{}
|
|
|
|
>>> DELETE @token:/channel/subscribe/:cid
|
|
{}
|
|
|
|
|
|
=== ROOM ===
|
|
|
|
>>> POST @token:/channel/room/:cid
|
|
{
|
|
name: <String>
|
|
}
|
|
|
|
>>> GET @token:/channel/room/:cid --> all channel's rooms of this type
|
|
|
|
>>> GET @token:/channel/room/:cid/:rid --> room information of this type
|
|
|
|
>>> PUT @token:/channel/room/:cid/:rid
|
|
{
|
|
name: <String>
|
|
}
|
|
|
|
>>> DELETE @token:/channel/room/:cid/:rid --> remove room
|