{"info":{"_postman_id":"c9133754-42b5-4eea-bbb3-192eb8a770ef","name":"Django_Auth_API","description":"<html><head></head><body><p>This API is designed to handle complete authentication for a Django application using JSON Web Tokens (JWT). The API allows users to register, login, view profile, change password and reset password. It also provides endpoints for refreshing and verifying tokens.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24544538","collectionId":"c9133754-42b5-4eea-bbb3-192eb8a770ef","publishedId":"2s8ZDYYhfm","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-21T17:21:51.000Z"},"item":[{"name":"User Registration","id":"d184d013-dccf-484b-b20f-d37a3da22a9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\" : \"error\",\n    \"email\" : \"error@error.com\",\n    \"tc\" : \"True\",\n    \"password\" : \"error\",\n    \"password2\" : \"error\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/user/register/","description":"<p><strong>/api/user/register/</strong>: This endpoint is used for registering a new user. It accepts a POST request and requires the following parameters in the request body: name, email, tc, password, password2. It accepts the tc field which indicate that user has read and agree with terms and condition. Upon successful registration, it returns a response with a message indicating that the registration was successful and a unique user ID.</p>\n<p><strong>Authentication:</strong><br />This endpoint does not require any authentication as it is used to register a new user.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","user","register",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d184d013-dccf-484b-b20f-d37a3da22a9b"},{"name":"Login User","id":"76aa94af-4f9a-4ba5-83e6-213c711330d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\" : \"error@error.com\",\n    \"password\" : \"error\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/user/login/?accept=","description":"<p><strong>/api/user/login/</strong>: This endpoint is used for logging in an existing user. It accepts a POST request and requires the following parameters in the request body: email, password. Upon successful login, it returns a response with a message indicating that the login was successful and a JSON Web Token (JWT) that must be included in the Authorization header for all subsequent requests.</p>\n<p><strong>Authentication:</strong><br />This endpoint does not require any authentication for logging in, but a valid JWT token is required for all other endpoints that are protected.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","user","login",""],"host":["127","0","0","1"],"query":[{"key":"accept","value":""}],"variable":[]}},"response":[],"_postman_id":"76aa94af-4f9a-4ba5-83e6-213c711330d5"},{"name":"User Profile","id":"c0272fa2-a247-4973-8c7a-db26b0618b18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjc0MzE5NzEwLCJpYXQiOjE2NzQzMTk0MTAsImp0aSI6IjI4Y2E2MDA3ZTc5YTRmZjc4MDJiMzE1MjQ3YzRhMGRhIiwidXNlcl9pZCI6OH0.RMwQraUOp_aruIPS-JDPkHvBzqMX_PwQGgENKLPrwz8\n","type":"text"}],"url":"http://127.0.0.1:8000/api/user/profile/","description":"<p><strong>/api/user/profile/:</strong> This endpoint is used for viewing and updating a user's profile information. It accepts GET and PATCH requests. The GET request returns a JSON object containing the user's profile information, such as name and email.</p>\n<p><strong>Authentication:</strong></p>\n<p>This endpoint requires a valid JWT token in the Authorization header.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","user","profile",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"c0272fa2-a247-4973-8c7a-db26b0618b18"},{"name":"Change User Password","id":"5ca212cf-cbfd-4e18-8274-1751d1ad1fbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjc0MzE5NzEwLCJpYXQiOjE2NzQzMTk0MTAsImp0aSI6IjI4Y2E2MDA3ZTc5YTRmZjc4MDJiMzE1MjQ3YzRhMGRhIiwidXNlcl9pZCI6OH0.RMwQraUOp_aruIPS-JDPkHvBzqMX_PwQGgENKLPrwz8","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"password\" : \"admin\",\n    \"password2\" : \"admin\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/user/password_change/","urlObject":{"protocol":"http","port":"8000","path":["api","user","password_change",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ca212cf-cbfd-4e18-8274-1751d1ad1fbe"},{"name":"Send Reset Password Email","id":"590d8a91-39fc-432a-9cdf-a2c091430169","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\" : \"error@error.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/user/send-password-change-email/?","urlObject":{"protocol":"http","port":"8000","path":["api","user","send-password-change-email",""],"host":["127","0","0","1"],"query":[{"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"590d8a91-39fc-432a-9cdf-a2c091430169"},{"name":"Password Reset","id":"5c4f6831-e3de-4039-b06f-ec2b58d3c2c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"password\" : \"error\",\n    \"password2\" : \"error\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/user/reset_password/OA/bidys7-e6588de55940c75866f56285f47ea096/?","urlObject":{"protocol":"http","port":"8000","path":["api","user","reset_password","OA","bidys7-e6588de55940c75866f56285f47ea096",""],"host":["127","0","0","1"],"query":[{"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"5c4f6831-e3de-4039-b06f-ec2b58d3c2c9"}]}