{"info":{"_postman_id":"eb4d64d2-01c0-4336-b671-894bfe7a8c35","name":"Notes App","description":"<html><head></head><body><h1 id=\"get-started-here\">🚀 Get started here</h1>\n<p>This template guides you through CRUD operations (GET, POST, PUT, DELETE), variables, and tests.</p>\n<h2 id=\"🔖-how-to-use-this-template\">🔖 <strong>How to use this template</strong></h2>\n<h4 id=\"step-1-send-requests\"><strong>Step 1: Send requests</strong></h4>\n<p>RESTful APIs allow you to perform CRUD operations using the POST, GET, PUT, and DELETE HTTP methods.</p>\n<p>This collection contains each of these <a href=\"https://learning.postman.com/docs/sending-requests/requests/\">request</a> types. Open each request and click \"Send\" to see what happens.</p>\n<h4 id=\"step-2-view-responses\"><strong>Step 2: View responses</strong></h4>\n<p>Observe the response tab for status code (200 OK), response time, and size.</p>\n<h4 id=\"step-3-send-new-body-data\"><strong>Step 3: Send new Body data</strong></h4>\n<p>Update or add new data in \"Body\" in the POST request. Typically, Body data is also used in PUT request.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"name\": \"Add your name in the body\"\n}\n\n</code></pre><h4 id=\"step-4-update-the-variable\"><strong>Step 4: Update the variable</strong></h4>\n<p>Variables enable you to store and reuse values in Postman. We have created a <a href=\"https://learning.postman.com/docs/sending-requests/variables/\">variable</a> called <code>base_url</code> with the sample request <a href=\"https://postman-api-learner.glitch.me\">https://postman-api-learner.glitch.me</a>. Replace it with your API endpoint to customize this collection.</p>\n<h4 id=\"step-5-add-tests-in-the-scripts-tab\"><strong>Step 5: Add tests in the \"Scripts\" tab</strong></h4>\n<p>Adding tests to your requests can help you confirm that your API is working as expected. You can write test scripts in JavaScript and view the output in the \"Test Results\" tab.</p>\n<img src=\"https://content.pstmn.io/fa30ea0a-373d-4545-a668-e7b283cca343/aW1hZ2UucG5n\" alt=\"\" height=\"1530\" width=\"2162\">\n\n<h2 id=\"💪-pro-tips\">💪 Pro tips</h2>\n<ul>\n<li><p>Use folders to group related requests and organize the collection.</p>\n</li>\n<li><p>Add more <a href=\"https://learning.postman.com/docs/writing-scripts/intro-to-scripts/\">scripts</a> to verify if the API works as expected and execute workflows.</p>\n</li>\n</ul>\n<h2 id=\"💡related-templates\">💡Related templates</h2>\n<p><a href=\"https://go.postman.co/redirect/workspace?type=personal&amp;collectionTemplateId=e9a37a28-055b-49cd-8c7e-97494a21eb54&amp;sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719\">API testing basics</a><br><a href=\"https://go.postman.co/redirect/workspace?type=personal&amp;collectionTemplateId=e9c28f47-1253-44af-a2f3-20dce4da1f18&amp;sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719\">API documentation</a><br><a href=\"https://go.postman.co/redirect/workspace?type=personal&amp;collectionTemplateId=31a9a6ed-4cdf-4ced-984c-d12c9aec1c27&amp;sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719\">Authorization methods</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"🚀 Get started here","slug":"get-started-here"}],"owner":"42935483","collectionId":"eb4d64d2-01c0-4336-b671-894bfe7a8c35","publishedId":"2sB3BALsXV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-08-02T00:14:50.000Z"},"item":[{"name":"user","item":[{"name":"signUp","id":"341210e9-8e58-477f-802b-d0a2ac149547","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"341210e9-8e58-477f-802b-d0a2ac149547"},{"name":"login","id":"d8bcdaec-351b-4b19-992e-ac6a13a05514","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"atef8008@gmail.com\",\r\n    \"password\":\"123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/users/login","urlObject":{"protocol":"http","port":"3000","path":["users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8bcdaec-351b-4b19-992e-ac6a13a05514"},{"name":"updateUser","id":"f689e2c7-caad-46a2-bb0f-8f66c4568b2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJkOTUzOWViZjZiYTExYTZhYmNiNiIsImlhdCI6MTc1Mzk5NjI5MiwiZXhwIjoxNzUzOTk5ODkyfQ.zWPR9kc4e88TXP4973ZFkJ2-LHZGj0HQKJQfYwknejc","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"nassar\",\r\n    \"email\":\"atef18008@gmal.com\",\r\n    \"age\":23\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/users","urlObject":{"protocol":"http","port":"3000","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f689e2c7-caad-46a2-bb0f-8f66c4568b2f"},{"name":"userDelete","id":"fba4b9ea-f313-4375-914c-7cb26bce3a63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"fba4b9ea-f313-4375-914c-7cb26bce3a63"},{"name":"getUser","id":"1f3a665d-f301-478f-9452-10afe7558ed5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJkZWM4MTY4YjIzMTQ1NjE0NDJhZiIsImlhdCI6MTc1Mzk5NzAwOCwiZXhwIjoxNzU0MDAwNjA4fQ.mF04kAOxKu43sfR1xJOlNGywH3maLSMdoeyqiiWJA1A","type":"text"}],"url":"http://localhost:3000/users","urlObject":{"protocol":"http","port":"3000","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f3a665d-f301-478f-9452-10afe7558ed5"}],"id":"8f4ba0c2-caf8-4675-9b88-791b5d0d0bcf","_postman_id":"8f4ba0c2-caf8-4675-9b88-791b5d0d0bcf","description":""},{"name":"note","item":[{"name":"createNote","id":"f3e4b845-23e9-4faf-81c9-34727eb13b0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJlNjQwYjA5MGQwYzc5ZTZlMDY3ZSIsImlhdCI6MTc1NDA4ODgzNywiZXhwIjoxNzU0MDkyNDM3fQ.OCqdbE_RGT7AYc1ZZUX6uGh_anSPip9jkNSVV5vGCbw","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"nsnssnsnsnsnsn\",\r\n    \"content\":\"lalalalalallalalala\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/notes","urlObject":{"protocol":"http","port":"3000","path":["notes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3e4b845-23e9-4faf-81c9-34727eb13b0d"},{"name":"updateNote","id":"e4e45f19-f1b7-4c80-84b7-277ef8402f27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"e4e45f19-f1b7-4c80-84b7-277ef8402f27"},{"name":"replaceNote","id":"ddbc19a3-6e63-45cc-8a0c-dafe3dfae659","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJlNjQwYjA5MGQwYzc5ZTZlMDY3ZSIsImlhdCI6MTc1Mzk5ODkzMywiZXhwIjoxNzU0MDAyNTMzfQ.wXoPFXl2fXyXp5oZEPklRE7aQ2Bvxk8IBvLf_fGHiHQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"this is the update\",\r\n    \"content\":\"this is the updated content\",\r\n    \"userId\" :\"688bdec8168b2314561442af\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/notes/replace/688be2cde0a21ba21ce86213","urlObject":{"protocol":"http","port":"3000","path":["notes","replace","688be2cde0a21ba21ce86213"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ddbc19a3-6e63-45cc-8a0c-dafe3dfae659"},{"name":"updateTitle","id":"7d320825-c08f-4942-90fa-57e4664f0a07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJlNjQwYjA5MGQwYzc5ZTZlMDY3ZSIsImlhdCI6MTc1NDA4ODgzNywiZXhwIjoxNzU0MDkyNDM3fQ.OCqdbE_RGT7AYc1ZZUX6uGh_anSPip9jkNSVV5vGCbw","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"this update for all titles\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/notes/all","urlObject":{"protocol":"http","port":"3000","path":["notes","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7d320825-c08f-4942-90fa-57e4664f0a07"},{"name":"deleteNote","id":"5535186f-fc46-4285-a03a-a26a5fb19208","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJlNjQwYjA5MGQwYzc5ZTZlMDY3ZSIsImlhdCI6MTc1NDA4ODgzNywiZXhwIjoxNzU0MDkyNDM3fQ.OCqdbE_RGT7AYc1ZZUX6uGh_anSPip9jkNSVV5vGCbw","type":"text"}],"url":"http://localhost:3000/notes/688d459ad4afc73d6b250149","urlObject":{"protocol":"http","port":"3000","path":["notes","688d459ad4afc73d6b250149"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5535186f-fc46-4285-a03a-a26a5fb19208"},{"name":"paginate-sort","id":"a9653bb0-0d8e-4f71-9c21-130fc8bb4c35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJlNjQwYjA5MGQwYzc5ZTZlMDY3ZSIsImlhdCI6MTc1NDA4ODgzNywiZXhwIjoxNzU0MDkyNDM3fQ.OCqdbE_RGT7AYc1ZZUX6uGh_anSPip9jkNSVV5vGCbw","type":"text"}],"url":"http://localhost:3000/notes/paginate-sort?page=1&limit=3","urlObject":{"protocol":"http","port":"3000","path":["notes","paginate-sort"],"host":["localhost"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"3"}],"variable":[]}},"response":[],"_postman_id":"a9653bb0-0d8e-4f71-9c21-130fc8bb4c35"},{"name":"getNote","id":"2ec3b049-fec1-4228-a547-6bd45af4d95a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJlNjQwYjA5MGQwYzc5ZTZlMDY3ZSIsImlhdCI6MTc1NDA4ODgzNywiZXhwIjoxNzU0MDkyNDM3fQ.OCqdbE_RGT7AYc1ZZUX6uGh_anSPip9jkNSVV5vGCbw","type":"text"}],"url":"http://localhost:3000/notes/688d4b535fbea7d9b807d7be","urlObject":{"protocol":"http","port":"3000","path":["notes","688d4b535fbea7d9b807d7be"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ec3b049-fec1-4228-a547-6bd45af4d95a"},{"name":"note-by-content","id":"574493cf-5f7c-4e31-b975-3d707756ce0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJlNjQwYjA5MGQwYzc5ZTZlMDY3ZSIsImlhdCI6MTc1NDA4ODgzNywiZXhwIjoxNzU0MDkyNDM3fQ.OCqdbE_RGT7AYc1ZZUX6uGh_anSPip9jkNSVV5vGCbw","type":"text"}],"url":"http://localhost:3000/notes/note-by-content?content=lalalalalallalalla","urlObject":{"protocol":"http","port":"3000","path":["notes","note-by-content"],"host":["localhost"],"query":[{"key":"content","value":"lalalalalallalalla"}],"variable":[]}},"response":[],"_postman_id":"574493cf-5f7c-4e31-b975-3d707756ce0a"},{"name":"note-with-user","id":"17dac3e4-40e4-481a-b5b8-2b213b29812d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJlNjQwYjA5MGQwYzc5ZTZlMDY3ZSIsImlhdCI6MTc1NDA4ODgzNywiZXhwIjoxNzU0MDkyNDM3fQ.OCqdbE_RGT7AYc1ZZUX6uGh_anSPip9jkNSVV5vGCbw","type":"text"}],"url":"http://localhost:3000/notes/note-with-user","urlObject":{"protocol":"http","port":"3000","path":["notes","note-with-user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"17dac3e4-40e4-481a-b5b8-2b213b29812d"},{"name":"getNoteByTitle","id":"c762edb9-acdb-4f85-a907-427a5e5bb00f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJlNjQwYjA5MGQwYzc5ZTZlMDY3ZSIsImlhdCI6MTc1NDA5Mjc1MSwiZXhwIjoxNzU0MDk2MzUxfQ.VqJwlBmpEzwCD1cIhILG_pmT13n7tJz0WVp5Vnj_b-M","type":"text"}],"url":"http://localhost:3000/notes/aggregate?title=nsnssnsnsnsnsn","urlObject":{"protocol":"http","port":"3000","path":["notes","aggregate"],"host":["localhost"],"query":[{"key":"title","value":"nsnssnsnsnsnsn"}],"variable":[]}},"response":[],"_postman_id":"c762edb9-acdb-4f85-a907-427a5e5bb00f"},{"name":"deleteAllNotes","id":"98bf6a56-4bf2-459c-bd82-1b44607706f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4OGJlNjQwYjA5MGQwYzc5ZTZlMDY3ZSIsImlhdCI6MTc1NDA5Mjc1MSwiZXhwIjoxNzU0MDk2MzUxfQ.VqJwlBmpEzwCD1cIhILG_pmT13n7tJz0WVp5Vnj_b-M","type":"text"}],"url":"http://localhost:3000/notes","urlObject":{"protocol":"http","port":"3000","path":["notes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"98bf6a56-4bf2-459c-bd82-1b44607706f9"}],"id":"fd79fc8a-9479-470d-824e-a2f7a7f1c9d5","_postman_id":"fd79fc8a-9479-470d-824e-a2f7a7f1c9d5","description":""}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}],"variable":[{"id":"530bbdd9-38d3-441e-92dc-61f171c18dc2","key":"id","value":"1"},{"id":"57b5ecc1-1ffd-4eb5-a9a4-fa78c5251c5d","key":"base_url","value":"https://postman-rest-api-learner.glitch.me/"}]}