2018-03-24 14:13:27 +00:00
|
|
|
=== 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 ===
|
|
|
|
|
|
|
|
|
2018-03-27 16:21:02 +00:00
|
|
|
>>> POST @token:/channel/subscribe/:cid
|
2018-03-24 14:13:27 +00:00
|
|
|
{}
|
|
|
|
|
2018-03-27 16:21:02 +00:00
|
|
|
>>> DELETE @token:/channel/subscribe/:cid
|
2018-03-24 14:13:27 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
=== ROOM ===
|
|
|
|
|
2018-03-27 16:21:02 +00:00
|
|
|
>>> POST @token:/channel/room/:cid
|
2018-03-24 14:13:27 +00:00
|
|
|
{
|
|
|
|
name: <String>
|
|
|
|
}
|
|
|
|
|
2018-03-27 16:21:02 +00:00
|
|
|
>>> GET @token:/channel/room/:cid --> all channel's rooms of this type
|
2018-03-24 14:13:27 +00:00
|
|
|
|
2018-03-27 16:21:02 +00:00
|
|
|
>>> GET @token:/channel/room/:cid/:rid --> room information of this type
|
2018-03-24 14:13:27 +00:00
|
|
|
|
2018-03-27 16:21:02 +00:00
|
|
|
>>> PUT @token:/channel/room/:cid/:rid
|
2018-03-24 14:13:27 +00:00
|
|
|
{
|
|
|
|
name: <String>
|
|
|
|
}
|
|
|
|
|
2018-03-27 16:21:02 +00:00
|
|
|
>>> DELETE @token:/channel/room/:cid/:rid --> remove room
|