{"info":{"_postman_id":"0a5e07a2-a665-4e10-abda-e5dbfd8bbff3","name":"Loan Tracker","description":"<html><head></head><body><p>``</p>\n<h1 id=\"loan-tracker-api-documentation\">Loan Tracker API Documentation</h1>\n<h2 id=\"overview\">Overview</h2>\n<p>This API allows users to manage their accounts and apply for loans. Administrators have additional capabilities to manage users and loan applications.</p>\n<h2 id=\"base-url\">Base URL</h2>\n<p><code>http://localhost:8080</code></p>\n<h2 id=\"user-endpoints\">User Endpoints</h2>\n<h3 id=\"register-a-user\">Register a User</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>POST /users/register</code></p>\n</li>\n<li><p><strong>Description:</strong> Register a new user.</p>\n</li>\n<li><p><strong>Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n    \"email\": \"string\",\n    \"password\": \"string\"\n  }\n\n</code></pre>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: User registered successfully.</p>\n</li>\n<li><p><code>400 Bad Request</code>: Invalid request format.</p>\n</li>\n<li><p><code>500 Internal Server Error</code>: Registration failed.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"authenticate-a-user\">Authenticate a User</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>POST /users/login</code></p>\n</li>\n<li><p><strong>Description:</strong> Authenticate a user and generate access and refresh tokens.</p>\n</li>\n<li><p><strong>Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n    \"email\": \"string\",\n    \"password\": \"string\"\n  }\n\n</code></pre>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: Tokens issued.</p>\n</li>\n<li><p><code>400 Bad Request</code>: Invalid request format.</p>\n</li>\n<li><p><code>401 Unauthorized</code>: Authentication failed.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"verify-email\">Verify Email</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>GET /users/verify-email</code></p>\n</li>\n<li><p><strong>Description:</strong> Verify user's email address.</p>\n</li>\n<li><p><strong>Query Parameters:</strong></p>\n<ul>\n<li><p><code>email</code> (string): The user's email address.</p>\n</li>\n<li><p><code>token</code> (string): Verification token.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: User verified successfully.</p>\n</li>\n<li><p><code>500 Internal Server Error</code>: Verification failed.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"request-password-reset\">Request Password Reset</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>POST /users/password-reset/:email</code></p>\n</li>\n<li><p><strong>Description:</strong> Request a password reset.</p>\n</li>\n<li><p><strong>Path Parameter:</strong></p>\n<ul>\n<li><code>email</code> (string): The user's email address.</li>\n</ul>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: Reset request message.</p>\n</li>\n<li><p><code>500 Internal Server Error</code>: Password reset request failed.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"reset-password\">Reset Password</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>POST /users/password-update</code></p>\n</li>\n<li><p><strong>Description:</strong> Reset the user's password.</p>\n</li>\n<li><p><strong>Query Parameters:</strong></p>\n<ul>\n<li><p><code>email</code> (string): The user's email address.</p>\n</li>\n<li><p><code>token</code> (string): Reset token.</p>\n</li>\n<li><p><code>password</code> (string): New password.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: Password updated successfully.</p>\n</li>\n<li><p><code>500 Internal Server Error</code>: Password update failed.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"find-user-by-id\">Find User by ID</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>GET /users/profile</code></p>\n</li>\n<li><p><strong>Description:</strong> Retrieve user profile by ID (requires authentication).</p>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: User profile.</p>\n</li>\n<li><p><code>401 Unauthorized</code>: Authentication required.</p>\n</li>\n<li><p><code>404 Not Found</code>: User not found.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"refresh-token\">Refresh Token</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>GET /users/token/refresh</code></p>\n</li>\n<li><p><strong>Description:</strong> Refresh the user's access and refresh tokens.</p>\n</li>\n<li><p><strong>Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n    \"email\": \"string\",\n    \"password\": \"string\"\n  }\n\n</code></pre>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: New access and refresh tokens.</p>\n</li>\n<li><p><code>400 Bad Request</code>: Invalid request format.</p>\n</li>\n<li><p><code>401 Unauthorized</code>: Invalid credentials.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"admin-endpoints\">Admin Endpoints</h2>\n<h3 id=\"get-all-users\">Get All Users</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>GET /admin/users</code></p>\n</li>\n<li><p><strong>Description:</strong> Retrieve a list of all users (admin only).</p>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: List of users.</p>\n</li>\n<li><p><code>401 Unauthorized</code>: Admin access required.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"find-user-by-id-admin\">Find User by ID (Admin)</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>GET /admin/users/:id</code></p>\n</li>\n<li><p><strong>Description:</strong> Retrieve a user profile by ID (admin only).</p>\n</li>\n<li><p><strong>Path Parameter:</strong></p>\n<ul>\n<li><code>id</code> (string): User ID.</li>\n</ul>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: User profile.</p>\n</li>\n<li><p><code>401 Unauthorized</code>: Admin access required.</p>\n</li>\n<li><p><code>404 Not Found</code>: User not found.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"delete-user-admin\">Delete User (Admin)</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>DELETE /admin/users/:id</code></p>\n</li>\n<li><p><strong>Description:</strong> Delete a user by ID (admin only).</p>\n</li>\n<li><p><strong>Path Parameter:</strong></p>\n<ul>\n<li><code>id</code> (string): User ID.</li>\n</ul>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: User deleted.</p>\n</li>\n<li><p><code>401 Unauthorized</code>: Admin access required.</p>\n</li>\n<li><p><code>404 Not Found</code>: User not found.</p>\n</li>\n<li><p><code>403 Forbidden</code>: Cannot delete admin user.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"error-codes\">Error Codes</h2>\n<ul>\n<li><p><code>400 Bad Request</code>: The request could not be understood or was missing required parameters.</p>\n</li>\n<li><p><code>401 Unauthorized</code>: Authentication credentials were missing or invalid.</p>\n</li>\n<li><p><code>403 Forbidden</code>: The request is understood but not allowed.</p>\n</li>\n<li><p><code>404 Not Found</code>: The requested resource could not be found.</p>\n</li>\n<li><p><code>500 Internal Server Error</code>: An error occurred on the server.</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Loan Tracker API Documentation","slug":"loan-tracker-api-documentation"}],"owner":"37276877","collectionId":"0a5e07a2-a665-4e10-abda-e5dbfd8bbff3","publishedId":"2sAXjGduTp","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-27T15:43:17.000Z"},"item":[{"name":"Loan","item":[{"name":"Apply for Loan","id":"63f6a141-8ab2-4ddb-bea1-c648a8e3c16e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"7e8cb71b-eee4-4bd0-b4cb-459447bd49fb","name":"Apply for loan","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\":9090\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/loans"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 14:10:57 GMT"},{"key":"Content-Length","value":"45"}],"cookie":[],"responseTime":null,"body":"{\n    \"created loanID\": \"66cdde71db551fcba5da9b5d\"\n}"}],"_postman_id":"63f6a141-8ab2-4ddb-bea1-c648a8e3c16e"},{"name":"Get All Loans","id":"45f1d806-6fc1-45e3-b195-f9ae0930ddee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"ad15b52c-4dc6-4890-874e-25a2135d1562","name":"Get All loans","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"localhost:8080/admin/loans?status=all&order=desc","host":["localhost"],"port":"8080","path":["admin","loans"],"query":[{"key":"status","value":"all"},{"key":"order","value":"desc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 14:18:22 GMT"},{"key":"Content-Length","value":"387"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"66cdde71db551fcba5da9b5d\",\n        \"user_id\": \"66cdd988322d21f726601c3c\",\n        \"amount\": 9090,\n        \"term\": 0,\n        \"status\": \"pending\",\n        \"created_at\": \"2024-08-27T14:10:57.605Z\",\n        \"updated_at\": \"2024-08-27T14:10:57.605Z\"\n    },\n    {\n        \"id\": \"66cdde5e40e16cbb53c53745\",\n        \"user_id\": \"66cdd988322d21f726601c3c\",\n        \"amount\": 9090,\n        \"term\": 0,\n        \"status\": \"pending\",\n        \"created_at\": \"2024-08-27T14:10:38.692Z\",\n        \"updated_at\": \"2024-08-27T14:10:38.692Z\"\n    }\n]"}],"_postman_id":"45f1d806-6fc1-45e3-b195-f9ae0930ddee"},{"name":"Update loan status","id":"66d94196-9357-4f0c-ac01-55ad443ab969","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"4f920293-c41b-45d2-a9a8-e6cec55fe98f","name":"Update loan status","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\":\"rejected\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/admin/loans/66cdde5e40e16cbb53c53745/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 14:23:17 GMT"},{"key":"Content-Length","value":"46"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Loan status updated successfully\"\n}"}],"_postman_id":"66d94196-9357-4f0c-ac01-55ad443ab969"},{"name":"View loan Status","id":"b53b0189-6992-4bf1-85f0-ee6268e07001","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"5d3108a7-13ee-44c2-9366-6ee64a606756","name":"View loan status","originalRequest":{"method":"GET","header":[],"url":"localhost:8080/loans/66cdde5e40e16cbb53c53745"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 14:29:58 GMT"},{"key":"Content-Length","value":"192"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"66cdde5e40e16cbb53c53745\",\n    \"user_id\": \"66cdd988322d21f726601c3c\",\n    \"amount\": 9090,\n    \"term\": 0,\n    \"status\": \"pending\",\n    \"created_at\": \"2024-08-27T14:10:38.692Z\",\n    \"updated_at\": \"2024-08-27T14:10:38.692Z\"\n}"}],"_postman_id":"b53b0189-6992-4bf1-85f0-ee6268e07001"},{"name":"Delete Loan","id":"d269596e-d271-4e7e-8bf3-ab610bf84929","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"48874a68-c533-4b50-9040-6a7c4046da62","name":"Delete loan","originalRequest":{"method":"DELETE","header":[],"url":"localhost:8080/admin/loans/66cdde5e40e16cbb53c53745"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 14:32:49 GMT"},{"key":"Content-Length","value":"39"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Loan deleted successfully\"\n}"}],"_postman_id":"d269596e-d271-4e7e-8bf3-ab610bf84929"}],"id":"eb4c75a7-3fa9-4c6d-8c6b-8178e5f980bc","description":"<h2 id=\"loan-endpoints\">Loan Endpoints</h2>\n<h3 id=\"apply-for-a-loan\">Apply for a Loan</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>POST /loans/</code></p>\n</li>\n<li><p><strong>Description:</strong> Apply for a new loan (requires authentication).</p>\n</li>\n<li><p>{ \"amount\": \"number\", \"term\": \"number\" }</p>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>201 Created</code>: Loan application created.</p>\n</li>\n<li><p><code>400 Bad Request</code>: Invalid request format.</p>\n</li>\n<li><p><code>401 Unauthorized</code>: Authentication required.</p>\n</li>\n<li><p><code>500 Internal Server Error</code>: Application failed.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"view-loan-status\">View Loan Status</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>GET /loans/:id</code></p>\n</li>\n<li><p><strong>Description:</strong> Retrieve the status of a specific loan.</p>\n</li>\n<li><p><strong>Path Parameter:</strong></p>\n<ul>\n<li><code>id</code> (string): Loan ID.</li>\n</ul>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: Loan status.</p>\n</li>\n<li><p><code>404 Not Found</code>: Loan not found.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"admin-loan-endpoints\">Admin Loan Endpoints</h2>\n<h3 id=\"view-all-loans\">View All Loans</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>GET /admin/loans</code></p>\n</li>\n<li><p><strong>Description:</strong> Retrieve all loan applications (admin only).</p>\n</li>\n<li><p><strong>Query Parameters:</strong></p>\n<ul>\n<li><p><code>status</code> (string): Filter by loan status.</p>\n</li>\n<li><p><code>order</code> (string): Sort order (e.g., ascending, descending).</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: List of loans.</p>\n</li>\n<li><p><code>401 Unauthorized</code>: Admin access required.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"update-loan-status\">Update Loan Status</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>PATCH /admin/loans/:id/status</code></p>\n</li>\n<li><p><strong>Description:</strong> Update the status of a loan application (admin only).</p>\n</li>\n<li><p><strong>Path Parameter:</strong></p>\n<ul>\n<li><code>id</code> (string): Loan ID.</li>\n</ul>\n</li>\n<li><p>{ \"status\": \"string\" }</p>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: Loan status updated.</p>\n</li>\n<li><p><code>400 Bad Request</code>: Invalid request format.</p>\n</li>\n<li><p><code>401 Unauthorized</code>: Admin access required.</p>\n</li>\n<li><p><code>500 Internal Server Error</code>: Status update failed.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"delete-loan\">Delete Loan</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>DELETE /admin/loans/:id</code></p>\n</li>\n<li><p><strong>Description:</strong> Delete a specific loan application (admin only).</p>\n</li>\n<li><p><strong>Path Parameter:</strong></p>\n<ul>\n<li><code>id</code> (string): Loan ID.</li>\n</ul>\n</li>\n<li><p><strong>Responses:</strong></p>\n<ul>\n<li><p><code>200 OK</code>: Loan deleted.</p>\n</li>\n<li><p><code>401 Unauthorized</code>: Admin access required.</p>\n</li>\n<li><p><code>500 Internal Server Error</code>: Deletion failed.</p>\n</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"eb4c75a7-3fa9-4c6d-8c6b-8178e5f980bc"},{"name":"Login","id":"fcb0d922-e03a-4c7c-9f30-efed3036a624","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"eacab489-1620-42cb-9776-62398c5f7cf8","name":"Delete User","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    // \"username\":\"yene\",\n    \"password\":\"yene\",\n    \"email\":\"yeneinehseiba@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/admin/users/66cdd32b85a28b93c5200f5e"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 13:45:31 GMT"},{"key":"Content-Length","value":"47"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"delete failed: no documents deleted\"\n}"},{"id":"f1c742eb-5ad8-4e6a-b233-1e7948ecefcb","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"yeneinehseiba@gmail.com\",\n    \"password\":\"yene\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/users/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 13:55:38 GMT"},{"key":"Content-Length","value":"596"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2Y2RkOTg4MzIyZDIxZjcyNjYwMWMzYyIsImVtYWlsIjoieWVuZWluZWhzZWliYUBnbWFpbC5jb20iLCJpc19hZG1pbiI6dHJ1ZSwidXNlcm5hbWUiOiIiLCJpc19hY3RpdmUiOnRydWUsImV4cCI6MTcyNDc2ODczOCwiaWF0IjoxNzI0NzY2OTM4fQ.im8whgjPS5vVcLRXZqyAxqvDCKz9nSYV9ujrmf-vfAo\",\n    \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2Y2RkOTg4MzIyZDIxZjcyNjYwMWMzYyIsImVtYWlsIjoieWVuZWluZWhzZWliYUBnbWFpbC5jb20iLCJpc19hZG1pbiI6dHJ1ZSwidXNlcm5hbWUiOiIiLCJpc19hY3RpdmUiOnRydWUsImV4cCI6MTcyNDc3NzczOCwiaWF0IjoxNzI0NzY2OTM4fQ.aeSjKY8mS1BvLN3T__xiiIJGNZxC6vCSTcjwtSp9EQ4\"\n}"}],"_postman_id":"fcb0d922-e03a-4c7c-9f30-efed3036a624"},{"name":"Register user","id":"ffa1be01-e222-402d-a3ad-fd1af6d50cbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\":\"temp3\",\n    \"email\":\"holori3904@inpsur.com\",\n    \"password\":\"pass\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/users/register","urlObject":{"port":"8080","path":["users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c5aa253f-d9ed-4362-945c-381a8a12602c","name":"register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"yeneinehseiba@gmail.com\",\n    \"password\":\"yene\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/users/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 13:50:05 GMT"},{"key":"Content-Length","value":"42"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User registered successfully\"\n}"}],"_postman_id":"ffa1be01-e222-402d-a3ad-fd1af6d50cbc"},{"name":"verify email","id":"2a8c3bdb-ee72-489e-a8d1-ce19b5f019b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/users/verify-email?email=yeneinehseiba@gmail.com&token=tiGXEHRUkRcUorJNsT5lmmRSccNsU7FX18NAmADTw6hrP74lQbliGnNvufmUxhFM","urlObject":{"protocol":"http","port":"8080","path":["users","verify-email"],"host":["localhost"],"query":[{"key":"email","value":"yeneinehseiba@gmail.com"},{"key":"token","value":"tiGXEHRUkRcUorJNsT5lmmRSccNsU7FX18NAmADTw6hrP74lQbliGnNvufmUxhFM"}],"variable":[]}},"response":[{"id":"bed2652e-7d05-474d-a74f-aa0b91f4d2bc","name":"verify email","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/users/verify-email?email=yeneinehseiba@gmail.com&token=tiGXEHRUkRcUorJNsT5lmmRSccNsU7FX18NAmADTw6hrP74lQbliGnNvufmUxhFM","protocol":"http","host":["localhost"],"port":"8080","path":["users","verify-email"],"query":[{"key":"email","value":"yeneinehseiba@gmail.com"},{"key":"token","value":"tiGXEHRUkRcUorJNsT5lmmRSccNsU7FX18NAmADTw6hrP74lQbliGnNvufmUxhFM"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 13:53:05 GMT"},{"key":"Content-Length","value":"40"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User verified successfully\"\n}"}],"_postman_id":"2a8c3bdb-ee72-489e-a8d1-ce19b5f019b4"},{"name":"Get All users","id":"01152720-6bcc-4204-83ed-e6fe7d969d50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"a645fcea-6a1c-435c-81f5-c2ab87efd1ff","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"localhost:8080/admin/users/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 13:57:22 GMT"},{"key":"Content-Length","value":"323"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"66cdd988322d21f726601c3c\",\n        \"email\": \"yeneinehseiba@gmail.com\",\n        \"password\": \"$2a$10$A1kRnc/NhzDlqk3OWyQFOOX02iahN19EKxfPTj2epXkDuPfxLvBw6\",\n        \"first_name\": \"\",\n        \"last_name\": \"\",\n        \"verified\": true,\n        \"is_admin\": true,\n        \"created_at\": \"0001-01-01T00:00:00Z\",\n        \"updated_at\": \"2024-08-27T13:50:31.118Z\",\n        \"verfy_token_exp\": \"0001-01-01T00:00:00Z\"\n    }\n]"}],"_postman_id":"01152720-6bcc-4204-83ed-e6fe7d969d50"},{"name":"Get User by Id","id":"a42267dd-5aaf-4936-a25d-f6617886962d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"6b4d0480-1d45-408f-907d-3fae2d65fe12","name":"Get user By id","originalRequest":{"method":"GET","header":[],"url":"localhost:8080/admin/users/66cdd988322d21f726601c3c"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 13:58:44 GMT"},{"key":"Content-Length","value":"321"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"66cdd988322d21f726601c3c\",\n    \"email\": \"yeneinehseiba@gmail.com\",\n    \"password\": \"$2a$10$A1kRnc/NhzDlqk3OWyQFOOX02iahN19EKxfPTj2epXkDuPfxLvBw6\",\n    \"first_name\": \"\",\n    \"last_name\": \"\",\n    \"verified\": true,\n    \"is_admin\": true,\n    \"created_at\": \"0001-01-01T00:00:00Z\",\n    \"updated_at\": \"2024-08-27T13:50:31.118Z\",\n    \"verfy_token_exp\": \"0001-01-01T00:00:00Z\"\n}"}],"_postman_id":"a42267dd-5aaf-4936-a25d-f6617886962d"},{"name":"Refresh token","id":"15ebf45d-0ae8-447a-8f5e-70b77cea719a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"95a1272b-d059-403a-936e-f36e6b3eff0a","name":"refresh token","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"yeneinehseiba@gmail.com\",\n    \"password\":\"yene\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/users/token/refresh"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 27 Aug 2024 14:55:44 GMT"},{"key":"Content-Length","value":"596"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2Y2RkOTg4MzIyZDIxZjcyNjYwMWMzYyIsImVtYWlsIjoieWVuZWluZWhzZWliYUBnbWFpbC5jb20iLCJpc19hZG1pbiI6dHJ1ZSwidXNlcm5hbWUiOiIiLCJpc19hY3RpdmUiOnRydWUsImV4cCI6MTcyNDc3MjM0NCwiaWF0IjoxNzI0NzcwNTQ0fQ.S5NO1PGy1hTdGWgdKoyCzZiwVihvwRn7nr0-DjtMUuE\",\n    \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2Y2RkOTg4MzIyZDIxZjcyNjYwMWMzYyIsImVtYWlsIjoieWVuZWluZWhzZWliYUBnbWFpbC5jb20iLCJpc19hZG1pbiI6dHJ1ZSwidXNlcm5hbWUiOiIiLCJpc19hY3RpdmUiOnRydWUsImV4cCI6MTcyNDc4MTM0NCwiaWF0IjoxNzI0NzcwNTQ0fQ.PqEJienbR6roA69V9v76NcZnNVKdjGWR0JW5JA92WGA\"\n}"}],"_postman_id":"15ebf45d-0ae8-447a-8f5e-70b77cea719a"},{"name":"Password reset Request","id":"f24869d5-9612-4ff7-afae-b143027dbcbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"f24869d5-9612-4ff7-afae-b143027dbcbc"},{"name":"password reset","id":"e4002848-9e2c-4b50-8c3f-d9e6453ea5c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"localhost:8080/users/resetPassword/?email=yeneinehseiba@gmail.com&token=uKcxCIYLGffdDR2P9CewkjNFKZtKBMQHazidJ5wrSnnj5YpnW0q6qBM2pJ3IvqIS","urlObject":{"port":"8080","path":["users","resetPassword",""],"host":["localhost"],"query":[{"key":"email","value":"yeneinehseiba@gmail.com"},{"key":"token","value":"uKcxCIYLGffdDR2P9CewkjNFKZtKBMQHazidJ5wrSnnj5YpnW0q6qBM2pJ3IvqIS"}],"variable":[]}},"response":[],"_postman_id":"e4002848-9e2c-4b50-8c3f-d9e6453ea5c0"}]}