You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "# 📑 Auth-Mailer-API – Postman Documentation\n\nAuth-Mailer-API is a RESTful service that provides **user authentication** and **email sending capabilities**. This documentation is designed for Postman to help developers test, explore, and integrate the API quickly.\n\n## 🔑 Authentication\n\n- **Type:** JWT (JSON Web Token)\n\n- CódigoAuthorization: Bearer\n\n\n## 📬 Base URL\n\nCódigo\n\n```\nhttps://auth-mailer-api.onrender.com\n\n ```\n\n## ⚠️ Error Responses\n\n- **400 Bad Request:** Missing or invalid parameters.\n\n- **401 Unauthorized:** Invalid or missing token.\n\n- **404 Not Found:** Resource not found.\n\n- **500 Internal Server Error:** Unexpected server issue.\n\n\n## 🛠️ Postman Setup\n\n1. Import this collection into Postman.\n\n2. Set the **Base URL** as an environment variable (`{{base_url}}`).\n\n3. Add an **Authorization** header with your JWT token.\n\n4. Test endpoints individually or chain them in workflows.",
"description": "**Description:** Create a new user into database.\n\n**Correct Response:**\n\n``` json\n{\n\"message\": \"User created successfully!\",\n\"user\": {\n\"isVerified\": false,\n\"id\": 13,\n\"email\": \"clioanahi@gmail.com\",\n\"firstName\": \"Clio\",\n\"lastName\": \"Salgado\",\n\"country\": \"Mexico\",\n\"image\": \"https://xsgames.co/randomusers/assets/avatars/female/14.jpg\",\n\"updatedAt\": \"2025-12-09T22:29:32.222Z\",\n\"createdAt\": \"2025-12-09T22:29:32.222Z\"\n }\n}\n\n ```"
"description": "**Description:** Delete one user by ID.\n\n**Correct Response:**\n\n<img src=\"https://content.pstmn.io/2ec227d8-cd81-4989-ade7-8c81e8e2404d/aW1hZ2UucG5n\" alt=\"\" height=\"759\" width=\"1359\">"
"description": "**Description:** Get One User by ID.\n\n**Correct Response:**\n\n``` json\n{\n\"id\": 3,\n\"email\": \"zybarite@proton.me\",\n\"firstName\": \"Israel\",\n\"lastName\": \"Ramírez\",\n\"country\": \"Mexico\",\n\"image\": \"https://xsgames.co/randomusers/assets/avatars/male/7.jpg\",\n\"isVerified\": true,\n\"createdAt\": \"2025-12-09T01:22:57.958Z\",\n\"updatedAt\": \"2025-12-09T21:46:09.101Z\"\n}\n\n ```"
"description": "**Description:** Update user into db.\n\n**Correct Response:**\n\n<img src=\"https://content.pstmn.io/18533bbd-5a11-46e6-a88b-fb10f8f19864/aW1hZ2UucG5n\" width=\"941\" height=\"305\">"
251
+
},
252
+
"response": []
253
+
}
254
+
],
255
+
"description": "The **Users** folder contains endpoints related to user management in the Auth-Mailer-API. These endpoints allow developers to register, authenticate, and manage users within the system.\n\n### 📌 Endpoints\n\n| Method | Endpoint | Description | **Authorization** |\n| --- | --- | --- | --- |\n| GET | `/users` | Get all users | Token is Required |\n| GET | `/users/:id` | Get a single user by ID | Token is Required |\n| POST | `/users` | Create a new user | Not Required |\n| PUT | `/users/:id` | Update an existing user | Token is required |\n| DELETE | `/users/:id` | Delete an user by ID | Token is required |\n| GET | `/users/verify/:code` | Verify user email with code from email_codes | Not Required |\n| POST | `/users/login` | Login User | Not Required |\n| POST | `/users/reset_password` | Resest user password | Not Required |\n| POST | `/users/reset_password/:code` | Update password with code generated from email_codes | Not required |"
0 commit comments