{"info":{"_postman_id":"9eddf305-a2e5-42a0-a112-4c6b45888b38","name":"MemoStack","description":"<html><head></head><body><h1 id=\"a-modern-secure-and-modular-note-taking-api-inspired-by-tools-like-google-keep-notes\">A modern, secure, and modular note-taking API inspired by tools like Google Keep Notes</h1>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"A modern, secure, and modular note-taking API inspired by tools like Google Keep Notes","slug":"a-modern-secure-and-modular-note-taking-api-inspired-by-tools-like-google-keep-notes"}],"owner":"37407571","collectionId":"9eddf305-a2e5-42a0-a112-4c6b45888b38","publishedId":"2sB2xBEAMV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-06-21T13:12:29.000Z"},"item":[{"name":"Auth","item":[{"name":"Confirm-Email","id":"89ed4b60-f909-49ce-bd66-f5aa9cedfd79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/confirm-email","urlObject":{"path":["auth","confirm-email"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"e632044d-b647-4e6c-b814-29970927faf2","name":"Confirm-Email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/confirm-email"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"ETag","value":"W/\"35-o4kKn+VLlpGeMuYWG1h6AkFi/RY\""},{"key":"Date","value":"Thu, 12 Jun 2025 09:18:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"check your e-mail to confirm\"\n}"}],"_postman_id":"89ed4b60-f909-49ce-bd66-f5aa9cedfd79"},{"name":"Register","id":"5349f884-ce3c-48c3-8478-6240cf0de89f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Full Name\",\r\n    \"email\": \"example@any.com\",\r\n    \"password\": \"password\",\r\n    \"confirmPassword\": \"password\",\r\n    \"birthDate\": \"MM-DD-YYYY\",\r\n    \"otpCode\": \"0000\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/register","urlObject":{"path":["auth","register"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"287ce05c-2b84-487e-92e3-905eea1f21d5","name":"Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Full Name\",\r\n    \"email\": \"example@any.com\",\r\n    \"password\": \"password\",\r\n    \"confirmPassword\": \"password\",\r\n    \"birthDate\": \"MM-DD-YYYY\",\r\n    \"otpCode\": \"0000\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-ozuGaigDrBfY2NmVQeZC3mqGSyQ\""},{"key":"Date","value":"Thu, 12 Jun 2025 09:19:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"user created successfully\"\n}"}],"_postman_id":"5349f884-ce3c-48c3-8478-6240cf0de89f"},{"name":"Login","event":[{"listen":"test","script":{"id":"e7e434c9-cb98-437a-8eab-acf1aab84443","exec":["var response = pm.response.json()\r","pm.collectionVariables.set(\"accessToken\", response.data.accessToken)"],"type":"text/javascript","packages":{}}}],"id":"8759ce3c-d886-4df0-ada7-a16cf7df014d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/login","urlObject":{"path":["auth","login"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"45e61cb4-b20f-4089-9d35-fdc0edb39402","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-RateLimit-Limit","value":"10"},{"key":"X-RateLimit-Remaining","value":"9"},{"key":"Date","value":"Sat, 21 Jun 2025 12:30:59 GMT"},{"key":"X-RateLimit-Reset","value":"1750509660"},{"key":"RateLimit-Policy","value":"\"10-in-10min\"; q=10; w=600; pk=:ZWZmOGU3Y2E1MDY2:"},{"key":"RateLimit-Policy","value":"\"10-in-10min\"; q=10; w=600; pk=:ZWZmOGU3Y2E1MDY2:"},{"key":"RateLimit","value":"\"10-in-10min\"; r=9; t=600"},{"key":"RateLimit","value":"\"10-in-10min\"; r=9; t=600"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"245"},{"key":"ETag","value":"W/\"f5-Nogek1HD6phTVEN3uZuP6enmutU\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"logged in successfully\",\n    \"data\": {\n        \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODU2NjIwMDI1MzkxOGI2MTFjOWUyMjgiLCJpYXQiOjE3NTA1MDkwNjAsImV4cCI6MTc1MTExMzg2MH0.8gt8ZORaOV905ekelDGGM9wH71Hia8QoLtB0YNnlPwY\"\n    }\n}"}],"_postman_id":"8759ce3c-d886-4df0-ada7-a16cf7df014d"},{"name":"Forgot-Password","id":"5e8a93d0-6a53-459e-a927-e8218d523e04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/forgot-password","urlObject":{"path":["auth","forgot-password"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"a37c2abe-fb56-46f9-b85a-bfdab1687fb2","name":"Forgot-Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/forgot-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"ETag","value":"W/\"35-o4kKn+VLlpGeMuYWG1h6AkFi/RY\""},{"key":"Date","value":"Thu, 12 Jun 2025 09:22:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"check your e-mail to confirm\"\n}"}],"_postman_id":"5e8a93d0-6a53-459e-a927-e8218d523e04"},{"name":"Reset-Password","id":"f0ba4b40-0098-41ce-baa0-6a53c24545fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\",\r\n    \"newPassword\": \"password123\",\r\n    \"confirmPassword\":\"password123\",\r\n    \"otpCode\":\"0000\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/reset-password","urlObject":{"path":["auth","reset-password"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"29c9b0aa-e022-4d86-a472-ac597f2e671e","name":"Reset-Password","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\",\r\n    \"newPassword\": \"pasword123\",\r\n    \"confirmPassword\":\"pasword123\",\r\n    \"otpCode\":\"0000\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/reset-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"61"},{"key":"ETag","value":"W/\"3d-PDvgf+0GJw39Mr4CVQmABLU1064\""},{"key":"Date","value":"Thu, 12 Jun 2025 09:22:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"password has been reset successfully\"\n}"}],"_postman_id":"f0ba4b40-0098-41ce-baa0-6a53c24545fc"},{"name":"Delete Account","id":"198c2760-befa-4bab-998d-4b837865a9d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\",\r\n    \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/delete-account","urlObject":{"path":["auth","delete-account"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"a4ddfeb2-e923-4285-9df0-5343a325c403","name":"Delete Account","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\",\r\n    \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/delete-account"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-RateLimit-Limit","value":"10"},{"key":"X-RateLimit-Remaining","value":"6"},{"key":"Date","value":"Thu, 19 Jun 2025 12:08:43 GMT"},{"key":"X-RateLimit-Reset","value":"1750335397"},{"key":"RateLimit-Policy","value":"\"10-in-10min\"; q=10; w=600; pk=:ZWZmOGU3Y2E1MDY2:"},{"key":"RateLimit-Policy","value":"\"10-in-10min\"; q=10; w=600; pk=:ZWZmOGU3Y2E1MDY2:"},{"key":"RateLimit-Policy","value":"\"10-in-10min\"; q=10; w=600; pk=:ZWZmOGU3Y2E1MDY2:"},{"key":"RateLimit-Policy","value":"\"10-in-10min\"; q=10; w=600; pk=:ZWZmOGU3Y2E1MDY2:"},{"key":"RateLimit","value":"\"10-in-10min\"; r=3; t=474"},{"key":"RateLimit","value":"\"10-in-10min\"; r=6; t=474"},{"key":"RateLimit","value":"\"10-in-10min\"; r=6; t=474"},{"key":"RateLimit","value":"\"10-in-10min\"; r=6; t=474"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"ETag","value":"W/\"35-o4kKn+VLlpGeMuYWG1h6AkFi/RY\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"check your e-mail to confirm\"\n}"}],"_postman_id":"198c2760-befa-4bab-998d-4b837865a9d6"},{"name":"Confirm Deleting","id":"2a792907-fe69-4072-8988-1c13dbc6bc29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\",\r\n    \"otpCode\": \"0000\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/confirm-deleting","urlObject":{"path":["auth","confirm-deleting"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"6fbdfcf3-821f-4838-a6c6-ebbf72b012b4","name":"Confirm Deleting","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"example@any.com\",\r\n    \"otpCode\": \"0000\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/auth/confirm-deleting"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-RateLimit-Limit","value":"10"},{"key":"X-RateLimit-Remaining","value":"5"},{"key":"Date","value":"Thu, 19 Jun 2025 12:09:03 GMT"},{"key":"X-RateLimit-Reset","value":"1750335397"},{"key":"RateLimit-Policy","value":"\"10-in-10min\"; q=10; w=600; pk=:ZWZmOGU3Y2E1MDY2:"},{"key":"RateLimit-Policy","value":"\"10-in-10min\"; q=10; w=600; pk=:ZWZmOGU3Y2E1MDY2:"},{"key":"RateLimit-Policy","value":"\"10-in-10min\"; q=10; w=600; pk=:ZWZmOGU3Y2E1MDY2:"},{"key":"RateLimit-Policy","value":"\"10-in-10min\"; q=10; w=600; pk=:ZWZmOGU3Y2E1MDY2:"},{"key":"RateLimit","value":"\"10-in-10min\"; r=2; t=453"},{"key":"RateLimit","value":"\"10-in-10min\"; r=5; t=453"},{"key":"RateLimit","value":"\"10-in-10min\"; r=5; t=453"},{"key":"RateLimit","value":"\"10-in-10min\"; r=5; t=453"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"62"},{"key":"ETag","value":"W/\"3e-pRpAI3c1q9MpigC8OxuATPhNnC0\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Account has been deleted successfully\"\n}"}],"_postman_id":"2a792907-fe69-4072-8988-1c13dbc6bc29"}],"id":"2b7f0546-de4a-41a7-863a-e1672748e0b2","description":"<h2 id=\"endpoints-responsibilities-\">EndPoints Responsibilities :</h2>\n<ol>\n<li><p>Confirm-email.</p>\n</li>\n<li><p>Sign-up.</p>\n</li>\n<li><p>Login.</p>\n</li>\n<li><p>Forgot-password.</p>\n</li>\n<li><p>Reset-password.</p>\n</li>\n<li><p>Delete-account.</p>\n</li>\n<li><p>Confirm-deleteing</p>\n</li>\n</ol>\n","_postman_id":"2b7f0546-de4a-41a7-863a-e1672748e0b2"},{"name":"Notes","item":[{"name":"Get All","id":"2913612b-c4c9-47cf-aceb-545657bb96fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note","urlObject":{"path":["note"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"c407031e-6331-4f4c-962a-43c7ec83fcd7","name":"Get All Notes","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1001"},{"key":"ETag","value":"W/\"3e9-bWVKib/accN489ZdvvAPprvYxbM\""},{"key":"Date","value":"Thu, 12 Jun 2025 11:50:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"done\",\n    \"data\": {\n        \"pinned\": [\n            {\n                \"_id\": \"684abeb49b3681d96cd042e2\",\n                \"title\": \"My pinned note\",\n                \"body\": \"this is just a normal pinned note...nothing marvelous\",\n                \"tasks\": [],\n                \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n                \"attachments\": [],\n                \"createdAt\": \"2025-06-12T11:49:08.845Z\",\n                \"updatedAt\": \"2025-06-12T11:49:28.117Z\",\n                \"__v\": 0,\n                \"pinnedAt\": \"2025-06-12T11:49:28.116Z\"\n            }\n        ],\n        \"other\": [\n            {\n                \"_id\": \"684a9c95ffc8968dfd93bd32\",\n                \"title\": \"My first note\",\n                \"body\": \"in this note i'm discovering the world of typescript in making such a beautiful app like Google's keep notes app\",\n                \"tasks\": [\n                    {\n                        \"name\": \"create note app\",\n                        \"_id\": \"684a9c95ffc8968dfd93bd33\"\n                    },\n                    {\n                        \"name\": \"add documentation for it on postman\",\n                        \"_id\": \"684a9c95ffc8968dfd93bd34\"\n                    },\n                    {\n                        \"name\": \"upload it on github\",\n                        \"_id\": \"684a9c95ffc8968dfd93bd35\"\n                    },\n                    {\n                        \"name\": \"add documentation for it on github\",\n                        \"_id\": \"684a9c95ffc8968dfd93bd36\"\n                    }\n                ],\n                \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n                \"attachments\": [],\n                \"createdAt\": \"2025-06-12T09:23:33.475Z\",\n                \"updatedAt\": \"2025-06-12T11:46:36.411Z\",\n                \"__v\": 0\n            }\n        ],\n        \"count\": 2\n    }\n}"}],"_postman_id":"2913612b-c4c9-47cf-aceb-545657bb96fa"},{"name":"Get All Archived","id":"7592bfe5-0f72-465d-a662-4e8feae26dd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note/archived","urlObject":{"path":["note","archived"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"b42b5d07-ef77-4732-9aea-5599faf16ed3","name":"Get All Archived","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note/archived"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"722"},{"key":"ETag","value":"W/\"2d2-Ig7Ik67VE4DalIZV58XfmBVN0GM\""},{"key":"Date","value":"Thu, 12 Jun 2025 11:50:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"done\",\n    \"data\": {\n        \"archivedNotes\": [\n            {\n                \"_id\": \"684a9c95ffc8968dfd93bd32\",\n                \"title\": \"My first note\",\n                \"body\": \"in this note i'm discovering the world of typescript in making such a beautiful app like Google's keep notes app\",\n                \"tasks\": [\n                    {\n                        \"name\": \"create note app\",\n                        \"_id\": \"684a9c95ffc8968dfd93bd33\"\n                    },\n                    {\n                        \"name\": \"add documentation for it on postman\",\n                        \"_id\": \"684a9c95ffc8968dfd93bd34\"\n                    },\n                    {\n                        \"name\": \"upload it on github\",\n                        \"_id\": \"684a9c95ffc8968dfd93bd35\"\n                    },\n                    {\n                        \"name\": \"add documentation for it on github\",\n                        \"_id\": \"684a9c95ffc8968dfd93bd36\"\n                    }\n                ],\n                \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n                \"attachments\": [],\n                \"createdAt\": \"2025-06-12T09:23:33.475Z\",\n                \"updatedAt\": \"2025-06-12T11:50:25.301Z\",\n                \"__v\": 0,\n                \"archivedAt\": \"2025-06-12T11:50:25.301Z\"\n            }\n        ],\n        \"count\": 1\n    }\n}"}],"_postman_id":"7592bfe5-0f72-465d-a662-4e8feae26dd3"},{"name":"Get All Trashed","id":"883f4bdd-3533-4319-b640-6f71dd2ab3d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note/trashed","urlObject":{"path":["note","trashed"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"fcc4ec1e-19ac-4e08-b4c5-36602b5652a0","name":"Get All Trashed","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note/trashed"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"331"},{"key":"ETag","value":"W/\"14b-Bc+Dg/FtAtm9+tqNg6ISiqkxDBk\""},{"key":"Date","value":"Sat, 21 Jun 2025 08:36:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"done\",\n    \"data\": {\n        \"trashedNotes\": [\n            {\n                \"_id\": \"68566764ef7ff7e369fefe41\",\n                \"title\": \"trashed note\",\n                \"body\": \"this is an trashed note\",\n                \"tasks\": [],\n                \"createdBy\": \"68566200253918b611c9e228\",\n                \"createdAt\": \"2025-06-21T08:03:48.368Z\",\n                \"updatedAt\": \"2025-06-21T08:36:26.449Z\",\n                \"__v\": 0,\n                \"trashedAt\": \"2025-06-21T08:36:26.448Z\"\n            }\n        ],\n        \"count\": 1\n    }\n}"}],"_postman_id":"883f4bdd-3533-4319-b640-6f71dd2ab3d7"},{"name":"Get Single","id":"11d9e307-0719-4e00-b314-b7668122b56b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note/noteId","urlObject":{"path":["note","noteId"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"e75b80a3-b1fc-4fc0-aafa-716863ba846f","name":"Get Single Note","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note/684a9c95ffc8968dfd93bd32"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"690"},{"key":"ETag","value":"W/\"2b2-j7X9swNqHNhLWckvjNfJki+2Br8\""},{"key":"Date","value":"Thu, 12 Jun 2025 11:37:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"done\",\n    \"data\": {\n        \"_id\": \"684a9c95ffc8968dfd93bd32\",\n        \"title\": \"My first note\",\n        \"body\": \"in this note i'm discovering the world of typescript in making such a beautiful app like Google's keep notes app\",\n        \"tasks\": [\n            {\n                \"name\": \"create note app\",\n                \"_id\": \"684a9c95ffc8968dfd93bd33\"\n            },\n            {\n                \"name\": \"add documentation for it on postman\",\n                \"_id\": \"684a9c95ffc8968dfd93bd34\"\n            },\n            {\n                \"name\": \"upload it on github\",\n                \"_id\": \"684a9c95ffc8968dfd93bd35\"\n            },\n            {\n                \"name\": \"add documentation for it on github\",\n                \"_id\": \"684a9c95ffc8968dfd93bd36\"\n            }\n        ],\n        \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n        \"attachments\": [],\n        \"createdAt\": \"2025-06-12T09:23:33.475Z\",\n        \"updatedAt\": \"2025-06-12T11:18:04.623Z\",\n        \"__v\": 0,\n        \"pinnedAt\": \"2025-06-12T11:18:04.622Z\"\n    }\n}"}],"_postman_id":"11d9e307-0719-4e00-b314-b7668122b56b"},{"name":"Create","id":"f0cb0e08-3a1c-450d-be16-9dbaccfc2b97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"title\",\r\n    \"body\": \"body\", // optional\r\n    \"tasks\": [ // optional\r\n        {\r\n            \"name\": \"task's name\",\r\n            \"completed\": true // optional\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note","urlObject":{"path":["note"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"fe828488-cf3a-4732-a5d0-4f2dc7a4298e","name":"Creating note with un-completed task","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"tasks note\",\r\n\r\n    \"tasks\": [\r\n        {\r\n            \"name\": \"create note app\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"364"},{"key":"ETag","value":"W/\"16c-DYShBRooPIb+OryEO/7ruwWrW/k\""},{"key":"Date","value":"Sun, 15 Jun 2025 07:51:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"note created successfully\",\n    \"data\": {\n        \"title\": \"tasks note\",\n        \"tasks\": [\n            {\n                \"name\": \"create note app\",\n                \"createdAt\": \"2025-06-15T07:51:35.780Z\",\n                \"_id\": \"684e7b8aa9733cc7520cdbf4\"\n            }\n        ],\n        \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n        \"_id\": \"684e7b8aa9733cc7520cdbf3\",\n        \"attachments\": [],\n        \"createdAt\": \"2025-06-15T07:51:38.323Z\",\n        \"updatedAt\": \"2025-06-15T07:51:38.323Z\",\n        \"__v\": 0\n    }\n}"},{"id":"ddfce4e0-bd7e-4f10-aad0-1e51538f1e7e","name":"Creating note with a completed task","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"tasks note\",\r\n\r\n    \"tasks\": [\r\n        {\r\n            \"name\": \"create task\",\r\n            \"completed\": true\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"418"},{"key":"ETag","value":"W/\"1a2-1wgC57I2QPclnmWsMs/STL6W+Ys\""},{"key":"Date","value":"Sun, 15 Jun 2025 07:52:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"note created successfully\",\n    \"data\": {\n        \"title\": \"tasks note\",\n        \"tasks\": [\n            {\n                \"name\": \"create task\",\n                \"completed\": true,\n                \"createdAt\": \"2025-06-15T07:51:35.780Z\",\n                \"_id\": \"684e7bb6a9733cc7520cdbf8\",\n                \"completedAt\": \"2025-06-15T07:52:22.446Z\"\n            }\n        ],\n        \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n        \"_id\": \"684e7bb6a9733cc7520cdbf7\",\n        \"attachments\": [],\n        \"createdAt\": \"2025-06-15T07:52:22.448Z\",\n        \"updatedAt\": \"2025-06-15T07:52:22.448Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"f0cb0e08-3a1c-450d-be16-9dbaccfc2b97"},{"name":"Pin","id":"f0a3c218-94c4-481d-af17-f5eb21efba6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note/pin/noteId","urlObject":{"path":["note","pin","noteId"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"b4bb469f-3c38-4bec-b03b-a26dbb1db180","name":"Pin","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note/pin/684a9c95ffc8968dfd93bd32"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"718"},{"key":"ETag","value":"W/\"2ce-s0coDG46N0T/5I4Wp4vEnqsvN1c\""},{"key":"Date","value":"Thu, 12 Jun 2025 11:45:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"note is been pinned successfully\"\n}"}],"_postman_id":"f0a3c218-94c4-481d-af17-f5eb21efba6c"},{"name":"Add Attachments","id":"83c841fd-5234-4a44-b8e6-a0d35b298aca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"attachments","type":"file","uuid":"3ccab79a-47cb-4a01-aedd-01bd369c0597","src":"/C:/Users/moham/Pictures/unnamed.jpg"}]},"url":"http://localhost:3000/note/attachments/noteId","urlObject":{"path":["note","attachments","noteId"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"f3d3e01e-f61b-497d-999c-0a310dbbcc6b","name":"Add Attachments","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"attachments","type":"file","uuid":"3ccab79a-47cb-4a01-aedd-01bd369c0597","src":"/C:/Users/moham/Pictures/unnamed.jpg"}]},"url":"http://localhost:3000/note/attachments/685416577962dd2768ba8f3f"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"429"},{"key":"ETag","value":"W/\"1ad-N9xVIaTKQ2ZGYrhIDXdFUV5WwSI\""},{"key":"Date","value":"Thu, 19 Jun 2025 13:53:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"attachments has been uploaded successfully\",\n    \"data\": {\n        \"_id\": \"685416577962dd2768ba8f3f\",\n        \"attachments\": {\n            \"folderId\": \"685416577962dd2768ba8f3f\",\n            \"paths\": [\n                {\n                    \"secure_url\": \"https://res.cloudinary.com/djjqzi02l/image/upload/v1750341208/Keep_MyMind/685416577962dd2768ba8f3f/note/dbviulx0h0jycwhjmuhr.jpg\",\n                    \"public_id\": \"Keep_MyMind/685416577962dd2768ba8f3f/note/dbviulx0h0jycwhjmuhr\",\n                    \"_id\": \"6854165c7962dd2768ba8f44\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"83c841fd-5234-4a44-b8e6-a0d35b298aca"},{"name":"Edit","id":"9a2dcfbd-cd1f-4898-930f-e5ca0153c862","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"new title\",\r\n    \"body\": \"new body\", // optional\r\n    \"tasks\": [ // optional\r\n        {\r\n            \"name\": \"normal task\"\r\n        }\r\n    ],\r\n    \"label\": \"labelId\" // optional: if the note ddn't have label\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note/edit/noteId","urlObject":{"path":["note","edit","noteId"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"8e346308-2649-43f7-a121-46ad45d06709","name":"Edit","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"new title\",\r\n    \"body\": \"new body\", // optional\r\n    \"tasks\": [ // optional\r\n        {\r\n            \"name\": \"normal task\"\r\n        }\r\n    ],\r\n    \"label\": \"labelId\" // optional: if the note ddn't have label\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note/685002dc5fe5a33eb29edae6"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"241"},{"key":"ETag","value":"W/\"f1-sQW5A5XUJm1edz1uHUjXhs7Edj0\""},{"key":"Date","value":"Mon, 16 Jun 2025 12:24:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"note has been updated successfully\",\n    \"data\": {\n        \"_id\": \"685002dc5fe5a33eb29edae6\",\n        \"tasks\": [\n            {\n                \"name\": \"normal task\",\n                \"createdAt\": \"2025-06-16T12:22:11.219Z\",\n                \"_id\": \"68500ce030a3238e3f089cdd\"\n            }\n        ],\n        \"label\": \"684fffac8d206ada2618ecfe\"\n    }\n}"}],"_postman_id":"9a2dcfbd-cd1f-4898-930f-e5ca0153c862"},{"name":"Label","id":"96d7686c-b2c9-4fd0-8f8c-40ac9166b44e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/note/label/noteId?action=add&labelId=id","urlObject":{"path":["note","label","noteId"],"host":["http://localhost:3000"],"query":[{"key":"action","value":"add"},{"key":"labelId","value":"id"}],"variable":[]}},"response":[{"id":"eb3c84c8-8459-462e-8ed8-22c750f46c9c","name":"Add Label","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/note/label/685002dc5fe5a33eb29edae6?action=add&labelId=6856a4d86ec2d92b359ab7a8","host":["http://localhost:3000"],"path":["note","label","685002dc5fe5a33eb29edae6"],"query":[{"key":"action","value":"add"},{"key":"labelId","value":"6856a4d86ec2d92b359ab7a8"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-w7WHIIP/9MQw3XWDJ12r4Zl/NN8\""},{"key":"Date","value":"Sat, 21 Jun 2025 11:22:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Label has been added to note successfully\"\n}"},{"id":"69ea8feb-0674-4c08-866a-173aace0c6be","name":"Remove Label","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/note/label/685002dc5fe5a33eb29edae6?action=remove&labelId=6856a4d86ec2d92b359ab7a8","host":["http://localhost:3000"],"path":["note","label","685002dc5fe5a33eb29edae6"],"query":[{"key":"action","value":"remove"},{"key":"labelId","value":"6856a4d86ec2d92b359ab7a8"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"61"},{"key":"ETag","value":"W/\"3d-MYrr4PmDjUtqXBJqC2xqjipsCtI\""},{"key":"Date","value":"Sat, 21 Jun 2025 11:22:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"Label has been removed from note successfully\"\n}"}],"_postman_id":"96d7686c-b2c9-4fd0-8f8c-40ac9166b44e"},{"name":"Archive","id":"b1e0150b-f946-4cd0-86e6-56e1c1d1ae15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"http://localhost:3000/note/archive/noteId","urlObject":{"path":["note","archive","noteId"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"f6c7846b-152f-44a0-9781-64db9fc3a404","name":"Archive","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"url":"http://localhost:3000/note/archive/684a9c95ffc8968dfd93bd32"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"722"},{"key":"ETag","value":"W/\"2d2-pNsBLUvqLiaM5ScJERv0T0wSWLo\""},{"key":"Date","value":"Thu, 12 Jun 2025 11:46:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"note is been archived successfully\",\n    \"data\": {\n        \"_id\": \"684a9c95ffc8968dfd93bd32\",\n        \"title\": \"My first note\",\n        \"body\": \"in this note i'm discovering the world of typescript in making such a beautiful app like Google's keep notes app\",\n        \"tasks\": [\n            {\n                \"name\": \"create note app\",\n                \"_id\": \"684a9c95ffc8968dfd93bd33\"\n            },\n            {\n                \"name\": \"add documentation for it on postman\",\n                \"_id\": \"684a9c95ffc8968dfd93bd34\"\n            },\n            {\n                \"name\": \"upload it on github\",\n                \"_id\": \"684a9c95ffc8968dfd93bd35\"\n            },\n            {\n                \"name\": \"add documentation for it on github\",\n                \"_id\": \"684a9c95ffc8968dfd93bd36\"\n            }\n        ],\n        \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n        \"attachments\": [],\n        \"createdAt\": \"2025-06-12T09:23:33.475Z\",\n        \"updatedAt\": \"2025-06-12T11:46:10.439Z\",\n        \"__v\": 0,\n        \"archivedAt\": \"2025-06-12T11:46:10.438Z\"\n    }\n}"}],"_postman_id":"b1e0150b-f946-4cd0-86e6-56e1c1d1ae15"},{"name":"Restore","id":"42666cd2-3c61-4326-97e6-cf04aebe6f37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"http://localhost:3000/note/restore/noteId","urlObject":{"path":["note","restore","noteId"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"8845ec8c-3c64-4c6a-a02d-9932a60d5fbd","name":"Restore","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"url":"http://localhost:3000/note/restore/684a9c95ffc8968dfd93bd32"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"682"},{"key":"ETag","value":"W/\"2aa-JnBobp7ueJXcju/MrfmKy9GvTAM\""},{"key":"Date","value":"Thu, 12 Jun 2025 11:46:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"note is been restored successfully\",\n    \"data\": {\n        \"_id\": \"684a9c95ffc8968dfd93bd32\",\n        \"title\": \"My first note\",\n        \"body\": \"in this note i'm discovering the world of typescript in making such a beautiful app like Google's keep notes app\",\n        \"tasks\": [\n            {\n                \"name\": \"create note app\",\n                \"_id\": \"684a9c95ffc8968dfd93bd33\"\n            },\n            {\n                \"name\": \"add documentation for it on postman\",\n                \"_id\": \"684a9c95ffc8968dfd93bd34\"\n            },\n            {\n                \"name\": \"upload it on github\",\n                \"_id\": \"684a9c95ffc8968dfd93bd35\"\n            },\n            {\n                \"name\": \"add documentation for it on github\",\n                \"_id\": \"684a9c95ffc8968dfd93bd36\"\n            }\n        ],\n        \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n        \"attachments\": [],\n        \"createdAt\": \"2025-06-12T09:23:33.475Z\",\n        \"updatedAt\": \"2025-06-12T11:46:36.411Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"42666cd2-3c61-4326-97e6-cf04aebe6f37"},{"name":"Delete","id":"f666af7b-09ac-4ef2-97ef-ddea8e0978e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"http://localhost:3000/note?action=permanent&id=noteId","urlObject":{"path":["note"],"host":["http://localhost:3000"],"query":[{"key":"action","value":"permanent"},{"key":"id","value":"noteId"}],"variable":[]}},"response":[{"id":"1a2993d5-89e2-4a29-8f9c-da630ac71f94","name":"Soft Delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":{"raw":"http://localhost:3000/note?action=trash&id=noteId","host":["http://localhost:3000"],"path":["note"],"query":[{"key":"action","value":"trash"},{"key":"id","value":"noteId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"66"},{"key":"ETag","value":"W/\"42-RuutuK0XrSdbd5QSSbIm+qJnQus\""},{"key":"Date","value":"Sat, 21 Jun 2025 08:36:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"note has been moved to trash successfully\"\n}"},{"id":"7409ec33-3c6f-40cc-b8ba-f132e3698bf6","name":"Permanent Deletion","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":{"raw":"http://localhost:3000/note?action=permanent&id=noteId","host":["http://localhost:3000"],"path":["note"],"query":[{"key":"action","value":"permanent"},{"key":"id","value":"noteId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-Wh0C1+yUmYA9k3jQ+HFESxqu42E\""},{"key":"Date","value":"Sat, 21 Jun 2025 08:38:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"note has been deleted forever successfully\"\n}"}],"_postman_id":"f666af7b-09ac-4ef2-97ef-ddea8e0978e1"}],"id":"2abe3206-e4a0-4fd3-ac63-bf415d7b54c2","description":"<h2 id=\"endpoints-responsibilities-\">EndPoints Responsibilities :</h2>\n<ol>\n<li><p>Get All.</p>\n</li>\n<li><p>Get All Archived.</p>\n</li>\n<li><p>Get All Trashed.</p>\n</li>\n<li><p>Get Single.</p>\n</li>\n<li><p>Create.</p>\n</li>\n<li><p>Pin.</p>\n</li>\n<li><p>Add Attachments.</p>\n</li>\n<li><p>Edit.</p>\n</li>\n<li><p>Label.</p>\n</li>\n<li><p>Archive.</p>\n</li>\n<li><p>Restore.</p>\n</li>\n<li><p>Delete</p>\n</li>\n</ol>\n","_postman_id":"2abe3206-e4a0-4fd3-ac63-bf415d7b54c2"},{"name":"Labels","item":[{"name":"Get All","id":"ea345874-b986-49ff-9f39-3a951076621e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/label","urlObject":{"path":["label"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"c1b95633-bb92-4b85-a348-6077c9af4f20","name":"Get All","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/label"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"782"},{"key":"ETag","value":"W/\"30e-4TLcn25B73XAI4EAiQ0aT8WQCJA\""},{"key":"Date","value":"Mon, 16 Jun 2025 11:33:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"done\",\n    \"data\": [\n        {\n            \"_id\": \"684fffac8d206ada2618ecfe\",\n            \"name\": \"note's label\",\n            \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n            \"createdAt\": \"2025-06-16T11:27:40.358Z\",\n            \"updatedAt\": \"2025-06-16T11:27:40.358Z\",\n            \"__v\": 0,\n            \"notes\": [\n                {\n                    \"_id\": \"684eca3726a70911c97c5112\",\n                    \"title\": \"tasks note\",\n                    \"tasks\": [\n                        {\n                            \"name\": \"tasks are done\",\n                            \"completed\": true,\n                            \"completedAt\": \"2025-06-15T13:34:32.120Z\",\n                            \"createdAt\": \"2025-06-15T13:30:38.005Z\",\n                            \"_id\": \"684ecbe8ad65061693b2251b\"\n                        },\n                        {\n                            \"name\": \"attachments\",\n                            \"completed\": true,\n                            \"completedAt\": \"2025-06-16T11:32:46.429Z\",\n                            \"createdAt\": \"2025-06-16T11:30:48.316Z\",\n                            \"_id\": \"6850009e9d2c86d6b87ab128\"\n                        }\n                    ],\n                    \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n                    \"attachments\": [],\n                    \"createdAt\": \"2025-06-15T13:27:19.195Z\",\n                    \"updatedAt\": \"2025-06-16T11:33:05.319Z\",\n                    \"__v\": 0,\n                    \"label\": \"684fffac8d206ada2618ecfe\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"ea345874-b986-49ff-9f39-3a951076621e"},{"name":"Get Single","id":"ab615ad3-c0e9-49a9-ba3f-8b3075c476b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/label/labelId","urlObject":{"path":["label","labelId"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"68c73bc7-4fc9-4922-88f4-e8a5df62d844","name":"Get Single","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/label/684fffac8d206ada2618ecfe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1408"},{"key":"ETag","value":"W/\"580-gzBgFaM/ZVO1lkyJ9cSBwgGvwqM\""},{"key":"Date","value":"Mon, 16 Jun 2025 12:06:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"done\",\n    \"data\": {\n        \"_id\": \"684fffac8d206ada2618ecfe\",\n        \"name\": \"note's label\",\n        \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n        \"createdAt\": \"2025-06-16T11:27:40.358Z\",\n        \"updatedAt\": \"2025-06-16T11:27:40.358Z\",\n        \"__v\": 0,\n        \"notes\": {\n            \"pin\": [\n                {\n                    \"_id\": \"685002855fe5a33eb29edada\",\n                    \"title\": \"tasks note\",\n                    \"tasks\": [\n                        {\n                            \"name\": \"completed task\",\n                            \"completed\": true,\n                            \"createdAt\": \"2025-06-16T11:36:44.106Z\",\n                            \"_id\": \"685002855fe5a33eb29edadb\",\n                            \"completedAt\": \"2025-06-16T11:39:49.743Z\"\n                        },\n                        {\n                            \"name\": \"un-completed task\",\n                            \"createdAt\": \"2025-06-16T11:36:44.106Z\",\n                            \"_id\": \"685002855fe5a33eb29edadc\"\n                        }\n                    ],\n                    \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n                    \"attachments\": [],\n                    \"createdAt\": \"2025-06-16T11:39:49.759Z\",\n                    \"updatedAt\": \"2025-06-16T11:40:08.042Z\",\n                    \"__v\": 0,\n                    \"pinnedAt\": \"2025-06-16T11:40:08.041Z\",\n                    \"label\": \"684fffac8d206ada2618ecfe\"\n                }\n            ],\n            \"archive\": [\n                {\n                    \"_id\": \"685002bd5fe5a33eb29edae1\",\n                    \"title\": \"archived note\",\n                    \"body\": \"this is an archived test note\",\n                    \"tasks\": [],\n                    \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n                    \"attachments\": [],\n                    \"createdAt\": \"2025-06-16T11:40:45.566Z\",\n                    \"updatedAt\": \"2025-06-16T11:40:51.519Z\",\n                    \"__v\": 0,\n                    \"archivedAt\": \"2025-06-16T11:40:51.518Z\",\n                    \"label\": \"684fffac8d206ada2618ecfe\"\n                }\n            ],\n            \"other\": [\n                {\n                    \"_id\": \"685002dc5fe5a33eb29edae6\",\n                    \"title\": \"normal note\",\n                    \"body\": \"this is a normal note\",\n                    \"tasks\": [],\n                    \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n                    \"attachments\": [],\n                    \"createdAt\": \"2025-06-16T11:41:16.620Z\",\n                    \"updatedAt\": \"2025-06-16T11:41:16.620Z\",\n                    \"__v\": 0,\n                    \"label\": \"684fffac8d206ada2618ecfe\"\n                }\n            ],\n            \"count\": 3\n        }\n    }\n}"}],"_postman_id":"ab615ad3-c0e9-49a9-ba3f-8b3075c476b1"},{"name":"Create","id":"581a32c4-a993-49b4-afca-61e62f3d602f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"new label\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/label","urlObject":{"path":["label"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"25e20eca-e3ba-4382-b89d-dee4c4760d55","name":"Create","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"new label\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/label"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"282"},{"key":"ETag","value":"W/\"11a-a6Ct8JJQDPAc5kiKxdhVwC8eKI4\""},{"key":"Date","value":"Mon, 16 Jun 2025 12:06:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"label has been created successfully\",\n    \"data\": {\n        \"name\": \"new label\",\n        \"createdBy\": \"684a9b78ffc8968dfd93bd1f\",\n        \"_id\": \"685008c30a7d541273f24eea\",\n        \"createdAt\": \"2025-06-16T12:06:27.088Z\",\n        \"updatedAt\": \"2025-06-16T12:06:27.088Z\",\n        \"__v\": 0,\n        \"id\": \"685008c30a7d541273f24eea\"\n    }\n}"}],"_postman_id":"581a32c4-a993-49b4-afca-61e62f3d602f"},{"name":"Rename","id":"4716ecb2-aab4-48db-8b78-de8233a638d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"name\": \"note's label\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/label/labelId","urlObject":{"path":["label","labelId"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"7c3b68b0-d38a-4722-b311-e32d3d02bc5b","name":"Rename","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"name\": \"renamed label\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/label/68500b0b3308d3134d484303"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"125"},{"key":"ETag","value":"W/\"7d-/tFcqenLsx5mr4kezvUgwKDFsyk\""},{"key":"Date","value":"Mon, 16 Jun 2025 12:19:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"label has been renamed successfully\",\n    \"data\": {\n        \"_id\": \"68500b0b3308d3134d484303\",\n        \"name\": \"renamed label\"\n    }\n}"}],"_postman_id":"4716ecb2-aab4-48db-8b78-de8233a638d0"},{"name":"Delete","id":"24ad4788-757c-49d8-8035-7c8ec1b116e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"http://localhost:3000/label/labelId","urlObject":{"path":["label","labelId"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"03fc00b3-9165-4d67-ad2b-baedceca2e88","name":"Delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2ODRhOWI3OGZmYzg5NjhkZmQ5M2JkMWYiLCJpYXQiOjE3NDk3MTk5ODgsImV4cCI6MTc1MDMyNDc4OH0.0f81C7WooM6N5OaHEP-J53Imt1W9YesNSv9yRMqBoB8","type":"text"}],"url":"http://localhost:3000/label/685009c9476d843fb9e8dacf"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"60"},{"key":"ETag","value":"W/\"3c-juzYA19SZHAl98c/JuzqhtM1wVI\""},{"key":"Date","value":"Mon, 16 Jun 2025 12:11:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"msg\": \"label has been Deleted successfully\"\n}"}],"_postman_id":"24ad4788-757c-49d8-8035-7c8ec1b116e4"}],"id":"1340f1db-a102-4c3b-acfa-168347cd98b6","description":"<h2 id=\"endpoints-responsibilities-\">EndPoints Responsibilities :</h2>\n<ol>\n<li><p>Get All.</p>\n</li>\n<li><p>Get Single.</p>\n</li>\n<li><p>Create.</p>\n</li>\n<li><p>Rename.</p>\n</li>\n<li><p>Delete</p>\n</li>\n</ol>\n","_postman_id":"1340f1db-a102-4c3b-acfa-168347cd98b6"}],"event":[{"listen":"prerequest","script":{"id":"63c160ed-0087-4e86-a99a-2811144802cd","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"8dfa7fc5-8db4-48fa-957c-2539646e89cf","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"baseURL","value":"http://localhost:3000","type":"string"},{"key":"accessToken","value":"","type":"string"}]}