-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurlscheme.txt
19 lines (18 loc) · 1.42 KB
/
urlscheme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
NOT FOR PRODUCTION USE
PLANNING USE ONLY
http://api.slang.com/
| - auth/ # User authentication endpoint
| | - signin/ # (POST) Signs a user in; Uses url query for user ID
| | - logout/ # (POST) Logs a user out; Uses url query for user ID
| - groups/ # Groups endpoint; REQUIRES AUTHENTICATED TOKEN (Returns 401 if not authenticated)
| | - create/ # (POST) Creates a group
| | - delete/<groupid> # (POST) Deletes a group; Authenticated token must be member of sudo in group
| | - <groupid>/ # (GET) Retrieves information about a group; Level of detail depends on authenticated token; (SOME INFORMATION CAN BE PUBLIC)
| | | - invite/ # (GET) Retrieves public invite link, if set; otherwise returns 403
| | | - link/ # Unique invite link endpoint, no direct access
| | | - <channelid>/ # (GET) Retrieves information about a channel in a group
| | | | - send/ # (POST) Sends a message in the channel
| | | | - <messageid>/ # (GET) Retrieves information about a message in a channel
| | | | | - delete/ # (POST?) Deletes the message; Authenticated user must be same as author OR mod/admin in group
| | | | | - edit/ # (POST) Updates the message; see delete/ notes
| | |