blob: 214c9f5db8bf8c5828d33b321429ee571eccbbcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
POST http://localhost:8000/api/auth/login/
content-type: application/json
{
"username": "jakub",
"password": "jakub"
}
###
PUT http://localhost:8000/api/chat/groups/detail/1/
Authorization: Token bd057a90565d85b2efa23f73deb9e5afdb4e4d56b24ba405a1cf33b66b49f4ed
content-type: application/json
{
"name": "Bar",
"users": [2]
}
###
POST http://localhost:8000/api/chat/groups/
Authorization: Token bd057a90565d85b2efa23f73deb9e5afdb4e4d56b24ba405a1cf33b66b49f4ed
content-type: application/json
{
"name": "Foo"
}
###
GET http://localhost:8000/api/auth/info/?
Authorization: Token 050b960ef361d319cd5ed628d3cefa6fee480fdf710bed54d79d4b2b2fb6c936
###
POST http://localhost:8000/api/chat/groups/detail/22/messages/
Authorization: Token b4bd0a69d9f78c9447b4f7581a8b8cc53f5732a7f6542db9a5fea093ce734b2c
content-type: application/json
{
"message": "test"
}
|