From e7f4bd9cc60aa3ad230b31c3918df1f2043d6942 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Sun, 12 Dec 2021 23:22:13 +0100 Subject: add grups views and modify info auth view --- index.http | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 index.http (limited to 'index.http') diff --git a/index.http b/index.http new file mode 100644 index 0000000..6349a84 --- /dev/null +++ b/index.http @@ -0,0 +1,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 -- cgit v1.2.3