blob: 6349a848d98ed6236c13672dbf1713c972aed496 (
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
|
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 bd057a90565d85b2efa23f73deb9e5afdb4e4d56b24ba405a1cf33b66b49f4ed
|