{"info":{"_postman_id":"926faa0b-9111-4571-b55a-9e14746078cd","name":"Event System","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":"20126221","collectionId":"926faa0b-9111-4571-b55a-9e14746078cd","publishedId":"2sAYkHny68","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-22T19:30:57.000Z"},"item":[{"name":"Admin","item":[{"name":"login","id":"2aa304f3-45b7-4418-9426-7aa3420bf421","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"admin@example.com\",\n  \"password\": \"password\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://postman-rest-api-learner.glitch.me//api/admin/login","urlObject":{"path":["api","admin","login"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"2aa304f3-45b7-4418-9426-7aa3420bf421"},{"name":"List Tickets","id":"81dbb41e-a1e2-4602-8dd1-6f6c17a5fca0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://postman-rest-api-learner.glitch.me//api/admin/tickets?page=1&limit=10&sort=created_at&order=asc&filter={\"ticket_name\":\"ticket\"}&=","urlObject":{"path":["api","admin","tickets"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"10"},{"key":"sort","value":"created_at"},{"key":"order","value":"asc"},{"key":"filter","value":"{\"ticket_name\":\"ticket\"}"},{"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"81dbb41e-a1e2-4602-8dd1-6f6c17a5fca0"},{"name":"Show Ticket Details","id":"c96badc8-64bf-4462-8862-6e0985492f09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://postman-rest-api-learner.glitch.me//api/admin/tickets/P71R-1","urlObject":{"path":["api","admin","tickets","P71R-1"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"c96badc8-64bf-4462-8862-6e0985492f09"},{"name":"Delete Ticket","id":"61f4c028-ef66-4467-988e-231937c0c909","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://postman-rest-api-learner.glitch.me//api/admin/tickets/SG89-1","urlObject":{"path":["api","admin","tickets","SG89-1"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"61f4c028-ef66-4467-988e-231937c0c909"},{"name":"logout","id":"8363f238-e9a2-4dfc-998f-16a507b2b5d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://postman-rest-api-learner.glitch.me//api/admin/logout","urlObject":{"path":["api","admin","logout"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"8363f238-e9a2-4dfc-998f-16a507b2b5d4"}],"id":"1c14ac81-f3d5-4c47-b820-fa7dc146ba7d","_postman_id":"1c14ac81-f3d5-4c47-b820-fa7dc146ba7d","description":""},{"name":"user","item":[{"name":"register","id":"a517feed-ae1f-46f8-8f6a-621f41e18492","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Ran Fathy\",\n  \"email\": \"rania.fathy@objects.ws\",\n  \"password\": \"password\",\n  \"password_confirmation\": \"password\",\n  \"phone\":\"\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://postman-rest-api-learner.glitch.me//api/user/register","urlObject":{"path":["api","user","register"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"a517feed-ae1f-46f8-8f6a-621f41e18492"},{"name":"login","id":"7d577422-f132-49fe-8292-cc7e33f6bcff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"rania.fathy@objects.ws\",\n  \"password\": \"newpassword\"\n}","options":{"raw":{"language":"json"}}},"url":"https://postman-rest-api-learner.glitch.me//api/user/login","urlObject":{"path":["api","user","login"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"7d577422-f132-49fe-8292-cc7e33f6bcff"},{"name":"forgot-password","id":"6ab28374-6ab3-4bba-96bc-139ef1294fd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"rania.fathy@objects.ws\"\n}","options":{"raw":{"language":"json"}}},"url":"https://postman-rest-api-learner.glitch.me//api/user/forgot-password","urlObject":{"path":["api","user","forgot-password"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ab28374-6ab3-4bba-96bc-139ef1294fd2"},{"name":"reset-password","id":"e716f114-aa89-4d49-a473-17c0dcfc08f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"rania.fathy@objects.ws\", \n    \"password\": \"newpassword\", \n    \"password_confirmation\": \"newpassword\",\n    \"token\": \"a71ee96e4e976f4705559dce15db0dc77e83fc549535b53b8785c199482b67ab\"\n}","options":{"raw":{"language":"json"}}},"url":"https://postman-rest-api-learner.glitch.me//api/user/reset-password","urlObject":{"path":["api","user","reset-password"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"e716f114-aa89-4d49-a473-17c0dcfc08f9"},{"name":"verify-email","id":"532ef09d-6386-492c-9cbb-4a7770446ad9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/ecmascript","type":"text"}],"url":"http://127.0.0.1:8000/api/user/verify-email/41/3f1c4e0e068e734e1f5a884945dc935275c99146?expires=1742674794&signature=25c28f1284451a65475ccd0aa9f3a79590c01c43ba72bd5b75c9f5297240a4e7","urlObject":{"protocol":"http","port":"8000","path":["api","user","verify-email","41","3f1c4e0e068e734e1f5a884945dc935275c99146"],"host":["127","0","0","1"],"query":[{"key":"expires","value":"1742674794"},{"key":"signature","value":"25c28f1284451a65475ccd0aa9f3a79590c01c43ba72bd5b75c9f5297240a4e7"}],"variable":[]}},"response":[],"_postman_id":"532ef09d-6386-492c-9cbb-4a7770446ad9"},{"name":"resend-email-verification","id":"07c9d42b-47a0-45f8-bafa-80f3fd34e49b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"rania.fathy@objects.ws\"\n}","options":{"raw":{"language":"json"}}},"url":"https://postman-rest-api-learner.glitch.me//api/user/email/verification-notification","urlObject":{"path":["api","user","email","verification-notification"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"07c9d42b-47a0-45f8-bafa-80f3fd34e49b"},{"name":"Profile","id":"b3374f8b-c194-40d9-bbbe-620d980ecdff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://postman-rest-api-learner.glitch.me//api/user/profile","urlObject":{"path":["api","user","profile"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3374f8b-c194-40d9-bbbe-620d980ecdff"},{"name":"Show Ticket Details","id":"253c3bf1-e924-46e0-b4ee-47e92d40fab6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://postman-rest-api-learner.glitch.me//api/user/tickets/SG89-1","urlObject":{"path":["api","user","tickets","SG89-1"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"253c3bf1-e924-46e0-b4ee-47e92d40fab6"},{"name":"logout","id":"41c37d73-ffe2-41a7-96ad-e1d43e3960e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://postman-rest-api-learner.glitch.me//api/user/logout","urlObject":{"path":["api","user","logout"],"host":["https://postman-rest-api-learner.glitch.me/"],"query":[],"variable":[]}},"response":[],"_postman_id":"41c37d73-ffe2-41a7-96ad-e1d43e3960e2"}],"id":"15304dad-2e19-4cec-9cb0-6826d75e88c9","_postman_id":"15304dad-2e19-4cec-9cb0-6826d75e88c9","description":""}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""]}},{"listen":"test","script":{"type":"text/javascript","exec":[""]}}],"variable":[{"key":"id","value":"1"},{"key":"base_url","value":"https://postman-rest-api-learner.glitch.me/"},{"key":"adminToken","value":"1|D7T5CWY33fmZ6NwzEFULdoThUedcT1kOG7ZDNugAf5726f6b","type":"default"}]}