summaryrefslogtreecommitdiffstats
path: root/index.http
blob: ef0ba9f4941d38bbed6ef21422fc1d607aee74ba (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
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

###

GET http://localhost:8000/api/chat/groups/detail/22/messages/
Authorization: Token b4bd0a69d9f78c9447b4f7581a8b8cc53f5732a7f6542db9a5fea093ce734b2c
content-type: application/json