{"info":{"_postman_id":"037810f5-bd7f-4577-80e7-f540018ffdda","name":"E-Commerce","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"34266999","collectionId":"037810f5-bd7f-4577-80e7-f540018ffdda","publishedId":"2sB3WnxNAo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-10-31T00:00:28.000Z"},"item":[{"name":"users","item":[{"name":"register","id":"76c9f366-a280-40a0-897c-757ecde974da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"omar\",\r\n    \"email\": \"omar58@gmail.com\",\r\n    \"password\":\"5678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/register","urlObject":{"protocol":"http","port":"8080","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"76c9f366-a280-40a0-897c-757ecde974da"},{"name":"login","id":"05c27aa3-028c-4986-ba36-d246198cbe3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"lily\",\r\n    \"password\":\"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login","urlObject":{"protocol":"http","port":"8080","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"05c27aa3-028c-4986-ba36-d246198cbe3a"}],"id":"a9344d22-910c-40d9-9c0f-c4e35340450f","_postman_id":"a9344d22-910c-40d9-9c0f-c4e35340450f","description":""},{"name":"products","item":[{"name":"View All Products","id":"bb375a08-f82b-43c6-bcaf-df74a7e7040c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/products/view-all","urlObject":{"protocol":"http","port":"8080","path":["api","products","view-all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb375a08-f82b-43c6-bcaf-df74a7e7040c"},{"name":"Add Product","id":"ff69e6ea-9e22-4bfc-a42d-57ec12c87d87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-CSRF-TOKEN","value":"u7-4jrcC0U1qG9oZc2_Ui-wvb5h_YbpDjbK5Ee-9ZlIMOSE12Y7e6IZm4nVHLOp8S0LguI5MQvpMUo9uuYrdJYqIVGc-DkQB","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"product","value":"{\n    \"name\": \"Hogwarts Graduation Cap\",\n    \"price\": 300.0,\n    \"description\": \"hand-made hogwarts graduation cap\",\n    \"brand\": \"soul4you\",\n    \"productAvailable\": true,\n    \"stockQuantity\": 10\n}","type":"text","uuid":"f5d1fc0b-651a-4679-a862-aea1f67491cb","contentType":"application/json"},{"key":"imageFile","type":"file","uuid":"1061de06-b4c2-4b1c-acab-6f192bef2292","src":"/C:/Users/Sama/Downloads/WhatsApp Image 2025-05-29 at 15.31.25_279b1eb6.jpg"}]},"url":"http://localhost:8080/api/products/add-product","urlObject":{"protocol":"http","port":"8080","path":["api","products","add-product"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ff69e6ea-9e22-4bfc-a42d-57ec12c87d87"},{"name":"Delete Product","id":"876109e0-7e45-4ad2-8db0-6425459dde14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-CSRF-TOKEN","value":"u7-4jrcC0U1qG9oZc2_Ui-wvb5h_YbpDjbK5Ee-9ZlIMOSE12Y7e6IZm4nVHLOp8S0LguI5MQvpMUo9uuYrdJYqIVGc-DkQB","type":"text"}],"url":"http://localhost:8080/api/products/delete-product/1","urlObject":{"protocol":"http","port":"8080","path":["api","products","delete-product","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"876109e0-7e45-4ad2-8db0-6425459dde14"},{"name":"CSRF Token","id":"af5654bb-e826-4fd3-be5c-c25012deacac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/products/csrf-token","urlObject":{"protocol":"http","port":"8080","path":["api","products","csrf-token"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"af5654bb-e826-4fd3-be5c-c25012deacac"}],"id":"96bf5111-38c6-46af-b2fd-2caa82c06e97","_postman_id":"96bf5111-38c6-46af-b2fd-2caa82c06e97","description":""}]}