diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2021-12-12 23:22:13 +0100 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2021-12-12 23:22:13 +0100 |
commit | e7f4bd9cc60aa3ad230b31c3918df1f2043d6942 (patch) | |
tree | 17a99bdffed70ccd156cff935c0851276dc5a01f /index.http | |
parent | ff53fd490b02536733f6618908760b9e3d52eeb3 (diff) | |
download | lom_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.http | 34 |
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 @@ | |||
1 | POST http://localhost:8000/api/auth/login/ | ||
2 | content-type: application/json | ||
3 | |||
4 | { | ||
5 | "username": "jakub", | ||
6 | "password": "jakub" | ||
7 | } | ||
8 | |||
9 | ### | ||
10 | |||
11 | PUT http://localhost:8000/api/chat/groups/detail/1/ | ||
12 | Authorization: Token bd057a90565d85b2efa23f73deb9e5afdb4e4d56b24ba405a1cf33b66b49f4ed | ||
13 | content-type: application/json | ||
14 | |||
15 | { | ||
16 | "name": "Bar", | ||
17 | "users": [2] | ||
18 | } | ||
19 | |||
20 | ### | ||
21 | |||
22 | POST http://localhost:8000/api/chat/groups/ | ||
23 | Authorization: Token bd057a90565d85b2efa23f73deb9e5afdb4e4d56b24ba405a1cf33b66b49f4ed | ||
24 | content-type: application/json | ||
25 | |||
26 | { | ||
27 | "name": "Foo" | ||
28 | } | ||
29 | |||
30 | |||
31 | ### | ||
32 | |||
33 | GET http://localhost:8000/api/auth/info/? | ||
34 | Authorization: Token bd057a90565d85b2efa23f73deb9e5afdb4e4d56b24ba405a1cf33b66b49f4ed | ||