{"info":{"_postman_id":"ef9f2a19-87d2-42ea-9600-7f739f204f7b","name":"MediConnect","description":"<html><head></head><body><p><strong>MediConnect API is a healthcare management backend that enables secure user authentication, patient profile management, appointment booking, and medical record handling. The system supports multiple user roles such as patient, doctor, student, and admin, using JWT-based authentication and role-based access control.</strong></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"39216531","collectionId":"ef9f2a19-87d2-42ea-9600-7f739f204f7b","publishedId":"2sB3dVNTGX","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-12-17T20:57:16.000Z"},"item":[{"name":"Authentication","item":[{"name":"signup-doctor","id":"524ecf83-1558-4af6-a049-fbfc01b5c6c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"John Doe\",\r\n  \"email\": \"john@example.com\",\r\n  \"password\": \"password123\",\r\n  \"role\": \"doctor\",\r\n  \"specialization\": \"Cardiology\",\r\n  \"year\": 2,\r\n  \"age\": 25,\r\n  \"gender\": \"male\",\r\n  \"contact\": \"+1234567890\",\r\n  \"bio\": \"Medical professional\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/register","description":"<p>Registers a new user in the MediConnect system with role-based details such as patient, doctor, student, or admin. On successful registration, a JWT authentication token is returned.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"524ecf83-1558-4af6-a049-fbfc01b5c6c1"},{"name":"login-doctor","id":"dbdcab2e-a5a1-478d-a18b-3b5fa7b85867","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"john@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/login","description":"<p>Authenticates a user using email and password and returns a JWT token for accessing protected routes.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dbdcab2e-a5a1-478d-a18b-3b5fa7b85867"},{"name":"me","id":"5ae5fd9c-7ee0-4750-aad3-588463a4c7eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"john@example.com\",\r\n  \"password\": \"password123\"\r\n}"},"url":"http://localhost:5000/api/auth/me","description":"<p>Fetches profile details of the currently authenticated user including personal information and role data.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","auth","me"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ae5fd9c-7ee0-4750-aad3-588463a4c7eb"},{"name":"update profile","id":"f3ab2802-10d1-491b-8b2a-12b90d02a539","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Jane Doe\",\r\n\"contact\": \"+0987654321\",\r\n\"address\": \"123 Medical Street\",\r\n\"bio\": \"Updated bio\",\r\n\"specialization\": \"Orthopedics\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/profile","description":"<p>Updates the authenticated user’s profile information such as name, contact details, specialization, bio, and profile picture using multipart form data.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","auth","profile"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3ab2802-10d1-491b-8b2a-12b90d02a539"},{"name":"Refresh","id":"2e3729a2-e1d5-4111-94de-ac353d4f53a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Jane Doe\",\r\n\"contact\": \"+0987654321\",\r\n\"address\": \"123 Medical Street\",\r\n\"bio\": \"Updated bio\",\r\n\"specialization\": \"Orthopedics\"\r\n\r\n}"},"url":"http://localhost:5000/api/auth/refresh","description":"<p>Generates a new JWT token using the currently valid token to maintain an active user session without re-login.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","auth","refresh"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e3729a2-e1d5-4111-94de-ac353d4f53a7"},{"name":"logout","id":"0d4126de-7d91-4584-a178-7ce029c343ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"patient@gmail.com\",\r\n  \"password\": \"patient123\"\r\n}\r\n"},"url":"http://localhost:5000/api/auth/logout","description":"<p>Logs out the currently authenticated user and marks the session as ended.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","auth","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d4126de-7d91-4584-a178-7ce029c343ad"}],"id":"8885d6b3-29f2-40a6-b27b-90138533b6e8","description":"<p><strong>This folder contains all authentication and user account–related APIs. These endpoints handle user registration, login, profile management, token refresh, and logout functionality using secure JWT authentication.</strong></p>\n","_postman_id":"8885d6b3-29f2-40a6-b27b-90138533b6e8"}]}