{"info":{"_postman_id":"c957b6ff-02f2-4b78-a287-d79078a5cd72","name":"Authentication","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"17718134","collectionId":"c957b6ff-02f2-4b78-a287-d79078a5cd72","publishedId":"Uz5NiCxw","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-06-10T18:08:05.000Z"},"item":[{"name":"create user","id":"c58893ef-deaa-40d4-8305-a13e0e1d3852","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"aaaa@gmail.com\",\r\n    \"first_name\":\"aaaa\",\r\n    \"last_name\":\"sharma\",\r\n    \"password\":\"sk123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://restapidjang.herokuapp.com/api/auth/signup/","description":"<p>first of all you need to provide all necessary details of user .</p>\n<p>first_name,last_name,email and password</p>\n","urlObject":{"protocol":"https","path":["api","auth","signup",""],"host":["restapidjang","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"3aecec6d-2f72-47bb-afb7-19df3719dccf","name":"create user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"aaaa@gmail.com\",\r\n    \"first_name\":\"aaaa\",\r\n    \"last_name\":\"sharma\",\r\n    \"password\":\"sk123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://restapidjang.herokuapp.com/api/auth/signup/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Fri, 10 Jun 2022 17:58:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"92"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Account Created Successfully !!\",\n    \"additionalMessage\": \"\",\n    \"data\": \"\"\n}"}],"_postman_id":"c58893ef-deaa-40d4-8305-a13e0e1d3852"},{"name":"get token","id":"0dc1624d-255f-4612-8ea3-96aa4a7c1dcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userType\":1,\r\n    \"name\":\"sk\",\r\n    \"phone\":\"123454364688\",\r\n    \"email\":\"ssa@gmail.com\",\r\n    // \"password\":\"sjksnsks\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/user/create","description":"<h2 id=\"when-you-have-successfully-created-a-account-you-need-to-get-your-token-and-each-time-you-want-to-access-something-you-need-to-pass-this-token-with-the-header\">When you have successfully created a account you need to get your token and each time you want to access something you need to pass this token with the header.</h2>\n<h4 id=\"you-also-get-a-refresh-token-which-is-used-to-refresh-the-token-after-30-days-when-it-gets-expire\">You also get a refresh token which is used to refresh the token after 30 days when it gets expire.</h4>\n","urlObject":{"protocol":"http","port":"8000","path":["api","user","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"cc7ca0bc-2e6d-49b5-9c75-7b1554d5aa48","name":"get token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"aaaa@gmail.com\",\r\n    \"password\":\"sk123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://restapidjang.herokuapp.com/api/token/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Fri, 10 Jun 2022 17:59:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"483"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY1NDk3MDM2MSwiaWF0IjoxNjU0ODgzOTYxLCJqdGkiOiI1MTViMTZjZjM5ZWE0MTJmYmUwYjU5ZDU4YmMyOGYxYiIsInVzZXJfaWQiOjR9.Pn_STrJLyWvJ2jbk4RpVP9kQXnaLH05i-XOeti5OYAA\",\n    \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU3NDc1OTYxLCJpYXQiOjE2NTQ4ODM5NjEsImp0aSI6ImIzNWQxNGFjYjViZDQxNDU4ODJiM2JjNDZmOTJjZDY1IiwidXNlcl9pZCI6NH0.UcLw_XnyuP1S4rUXqJKj9AXxXkzwiRicE8cQK35PZ34\"\n}"}],"_postman_id":"0dc1624d-255f-4612-8ea3-96aa4a7c1dcb"},{"name":"Get user details","id":"8c64284e-9ceb-4e5a-ad85-9550521b173e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU3MDU1MzU0LCJpYXQiOjE2NTQ0NjMzNTQsImp0aSI6ImQzNmJjNWIxMWYyYzQ4ZGI4YTU1NzYyZTkzYzFlMWM0IiwidXNlcl9pZCI6MX0.GzZPcoaKouRePttoW4GuEqQZSEfNTNLTqbs2ed7qMC4","type":"text"}],"url":"https://restapidjang.herokuapp.com/api/auth/","description":"<h2 id=\"as-you-can-see-now-you-dont-pass-a-username-and-password-instead-you-pass-a-token-which-should-follow-the-syntax-given-below\">As You can see now you don't pass a username and password instead you pass a token which should follow the syntax given below</h2>\n","urlObject":{"protocol":"https","path":["api","auth",""],"host":["restapidjang","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"3e7446f6-5a3a-4f12-bd68-2543574d0f6e","name":"Get user details","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU3MDU1MzU0LCJpYXQiOjE2NTQ0NjMzNTQsImp0aSI6ImQzNmJjNWIxMWYyYzQ4ZGI4YTU1NzYyZTkzYzFlMWM0IiwidXNlcl9pZCI6MX0.GzZPcoaKouRePttoW4GuEqQZSEfNTNLTqbs2ed7qMC4","type":"text"}],"url":"http://127.0.0.1:8000/api/auth/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 05 Jun 2022 21:18:47 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.13"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"GET, PATCH, POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"191"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"additionalMessage\": \"\",\n    \"data\": {\n        \"id\": 1,\n        \"email\": \"user@gmail.com\",\n        \"first_name\": \"satyam\",\n        \"last_name\": \"singh\",\n        \"is_admin\": true,\n        \"last_login\": \"2022-06-06T02:22:06+05:30\"\n    }\n}"}],"_postman_id":"8c64284e-9ceb-4e5a-ad85-9550521b173e"},{"name":"update user","id":"f2d7d7e3-e6bd-46f6-a095-6fd2b0904a9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU3MDU1MzU0LCJpYXQiOjE2NTQ0NjMzNTQsImp0aSI6ImQzNmJjNWIxMWYyYzQ4ZGI4YTU1NzYyZTkzYzFlMWM0IiwidXNlcl9pZCI6MX0.GzZPcoaKouRePttoW4GuEqQZSEfNTNLTqbs2ed7qMC4","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"first_name\":\"satya\",\r\n    \"last_name\":\"ss\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://restapidjang.herokuapp.com/api/auth/","urlObject":{"protocol":"https","path":["api","auth",""],"host":["restapidjang","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"bbd954ec-9580-4f48-afd9-ebac9a429cad","name":"update user","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU3MDU1MzU0LCJpYXQiOjE2NTQ0NjMzNTQsImp0aSI6ImQzNmJjNWIxMWYyYzQ4ZGI4YTU1NzYyZTkzYzFlMWM0IiwidXNlcl9pZCI6MX0.GzZPcoaKouRePttoW4GuEqQZSEfNTNLTqbs2ed7qMC4","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"first_name\":\"satya\",\r\n    \"last_name\":\"ss\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/auth/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 10 Jun 2022 16:50:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.13"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"PATCH, OPTIONS, GET"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"61"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"\",\n    \"additionalMessage\": \"\",\n    \"data\": \"\"\n}"}],"_postman_id":"f2d7d7e3-e6bd-46f6-a095-6fd2b0904a9f"},{"name":"delete user","id":"2368b012-a3e1-4413-bf8c-704cf90e0eea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU3NDcyNjQ4LCJpYXQiOjE2NTQ4ODA2NDgsImp0aSI6ImEyMTU5Y2Q4MjQ4OTQ4ODg5Y2VhZDE1OTNmZGIwMzFmIiwidXNlcl9pZCI6Mn0.d8QqR8JRaY6FZaWNY9eIRbUgNDpzCIslVYksUdovtr0","type":"text"}],"url":"https://restapidjang.herokuapp.com/api/auth/","urlObject":{"protocol":"https","path":["api","auth",""],"host":["restapidjang","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"30c4df2e-2ac0-4c58-9f23-64087b740396","name":"delete user","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU3NDcyNjQ4LCJpYXQiOjE2NTQ4ODA2NDgsImp0aSI6ImEyMTU5Y2Q4MjQ4OTQ4ODg5Y2VhZDE1OTNmZGIwMzFmIiwidXNlcl9pZCI6Mn0.d8QqR8JRaY6FZaWNY9eIRbUgNDpzCIslVYksUdovtr0","type":"text"}],"url":{"raw":"http://127.0.0.1:8000/api/auth/","protocol":"http","host":["127","0","0","1"],"port":"8000","path":["api","auth",""],"query":[{"key":"auth","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU3NDcyNjQ4LCJpYXQiOjE2NTQ4ODA2NDgsImp0aSI6ImEyMTU5Y2Q4MjQ4OTQ4ODg5Y2VhZDE1OTNmZGIwMzFmIiwidXNlcl9pZCI6Mn0.d8QqR8JRaY6FZaWNY9eIRbUgNDpzCIslVYksUdovtr0","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 10 Jun 2022 17:04:48 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.13"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"OPTIONS, GET, PATCH, DELETE"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"91"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": false,\n    \"message\": \"Account deleted Successfully!!\",\n    \"additionalMessage\": \"\",\n    \"data\": \"\"\n}"}],"_postman_id":"2368b012-a3e1-4413-bf8c-704cf90e0eea"},{"name":"refresh token","id":"2da801b4-b28f-43da-ada7-20fd911a985d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refresh\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY1NDk3MDM2MSwiaWF0IjoxNjU0ODgzOTYxLCJqdGkiOiI1MTViMTZjZjM5ZWE0MTJmYmUwYjU5ZDU4YmMyOGYxYiIsInVzZXJfaWQiOjR9.Pn_STrJLyWvJ2jbk4RpVP9kQXnaLH05i-XOeti5OYAA\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://restapidjang.herokuapp.com/api/token/refresh","urlObject":{"protocol":"https","path":["api","token","refresh"],"host":["restapidjang","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"8fe2c0a8-9437-4dc0-aecc-c14cd797f7a9","name":"refresh token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refresh\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY1NDk3MDM2MSwiaWF0IjoxNjU0ODgzOTYxLCJqdGkiOiI1MTViMTZjZjM5ZWE0MTJmYmUwYjU5ZDU4YmMyOGYxYiIsInVzZXJfaWQiOjR9.Pn_STrJLyWvJ2jbk4RpVP9kQXnaLH05i-XOeti5OYAA\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://restapidjang.herokuapp.com/api/token/refresh"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"gunicorn"},{"key":"Date","value":"Fri, 10 Jun 2022 18:01:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"483"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU3NDc2MDg0LCJpYXQiOjE2NTQ4ODM5NjEsImp0aSI6IjM5ZTdjYzUyYjhhMTRiYzdiNTI1MTdiOTNlNjhhYmQwIiwidXNlcl9pZCI6NH0.KEB4ChB5OVO7me2KBfwX6O5aMm5F-DAxbHUIU6qkLeQ\",\n    \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY1NDk3MDQ4NCwiaWF0IjoxNjU0ODg0MDg0LCJqdGkiOiJhZTMyYWQ4ODgyNjc0OGYzOGI5ZTE4YWI1ZmFkYWRhZiIsInVzZXJfaWQiOjR9.Jynkvq44VGl8NPecQTxx48U-MvhO7_ca85L0eN-fmfQ\"\n}"}],"_postman_id":"2da801b4-b28f-43da-ada7-20fd911a985d"}]}