summaryrefslogtreecommitdiffstats
path: root/index.http
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2021-12-12 23:22:13 +0100
committerjdlugosz963 <jdlugosz963@gmail.com>2021-12-12 23:22:13 +0100
commite7f4bd9cc60aa3ad230b31c3918df1f2043d6942 (patch)
tree17a99bdffed70ccd156cff935c0851276dc5a01f /index.http
parentff53fd490b02536733f6618908760b9e3d52eeb3 (diff)
downloadlom_api-e7f4bd9cc60aa3ad230b31c3918df1f2043d6942.tar.gz
lom_api-e7f4bd9cc60aa3ad230b31c3918df1f2043d6942.zip
add grups views and modify info auth view
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