summaryrefslogtreecommitdiffstats
path: root/index.http
diff options
context:
space:
mode:
Diffstat (limited to 'index.http')
-rw-r--r--index.http34
1 files changed, 34 insertions, 0 deletions
diff --git a/index.http b/index.http
new file mode 100644
index 0000000..6349a84
--- /dev/null
+++ b/index.http
@@ -0,0 +1,34 @@
1POST http://localhost:8000/api/auth/login/
2content-type: application/json
3
4{
5 "username": "jakub",
6 "password": "jakub"
7}
8
9###
10
11PUT http://localhost:8000/api/chat/groups/detail/1/
12Authorization: Token bd057a90565d85b2efa23f73deb9e5afdb4e4d56b24ba405a1cf33b66b49f4ed
13content-type: application/json
14
15{
16 "name": "Bar",
17 "users": [2]
18}
19
20###
21
22POST http://localhost:8000/api/chat/groups/
23Authorization: Token bd057a90565d85b2efa23f73deb9e5afdb4e4d56b24ba405a1cf33b66b49f4ed
24content-type: application/json
25
26{
27 "name": "Foo"
28}
29
30
31###
32
33GET http://localhost:8000/api/auth/info/?
34Authorization: Token bd057a90565d85b2efa23f73deb9e5afdb4e4d56b24ba405a1cf33b66b49f4ed