discord-client/parcel/mockup/api.list

82 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

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