Niels-Be / Coffee-light

7 stars 3 forks source link

Groups #1

Closed Peter42 closed 7 years ago

Peter42 commented 7 years ago

We need some kind of "coffee groups" one can join and only gets notified when a member of one of his groups goes grabbing a coffee.

Niels-Be commented 7 years ago
GET /channels
query: { search: "" }
Get all channels with optional filter.

GET /channel
query: {channelId }
Get more details about a channel

PUT /channel
body: { name, password, ttl, requestText, message, title, icon }
Create new channel and subscribe to it

POST /channel/subscription
body: { channelId, password }
Subscribe to channel, optional password

DELETE /channel/subscription
body: { channelId }
Unsubscribe from channel

DELETE /channel/notify
body: { channelId }
Notify that channel

GET /subscriptions
Get all subscribed channel ids

Channels without subscriptions get deleted