{"info":{"_postman_id":"bb6e132f-8cca-4d52-bcc6-7dd2917d2075","name":"Lectronic","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"17947721","collectionId":"bb6e132f-8cca-4d52-bcc6-7dd2917d2075","publishedId":"UzR1J1ya","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-07-20T15:37:36.000Z"},"item":[{"name":"Auth","item":[{"name":"Login","id":"c2f318eb-8b0c-4800-9f71-676cff6a479f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"wirlandikadevri@gmail.com\",\n    \"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/auth/","urlObject":{"protocol":"http","port":"8080","path":["auth",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c2f318eb-8b0c-4800-9f71-676cff6a479f"},{"name":"Register","id":"5de943a5-f06e-4a30-b054-2d042e4aa300","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fullname\":\"Devri Wirlandika\",\n    \"email\": \"wirlandikadevri@gmail.com\",\n    \"password\":\"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"https://mylectronic.herokuapp.com/user/register","urlObject":{"protocol":"https","path":["user","register"],"host":["mylectronic","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5de943a5-f06e-4a30-b054-2d042e4aa300"}],"id":"789e27be-f641-45c3-983c-923565d4d421","_postman_id":"789e27be-f641-45c3-983c-923565d4d421","description":""},{"name":"Order","item":[{"name":"Add Order","id":"df7b1597-680a-425e-acfc-765c6c3b5ed6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"product_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/order/new","urlObject":{"protocol":"http","port":"8080","path":["order","new"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"df7b1597-680a-425e-acfc-765c6c3b5ed6"},{"name":"Get Order","id":"ef00a10b-35cc-4098-990d-d871cf16d836","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://mylectronic.herokuapp.com/order/1","urlObject":{"protocol":"https","path":["order","1"],"host":["mylectronic","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef00a10b-35cc-4098-990d-d871cf16d836"},{"name":"My Order","id":"0b34c511-552c-43f1-a432-bfee6fbb0f2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://mylectronic.herokuapp.com/order/me","urlObject":{"protocol":"https","path":["order","me"],"host":["mylectronic","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b34c511-552c-43f1-a432-bfee6fbb0f2d"},{"name":"Get All","id":"6f0f3729-0342-4673-8c31-1e80f8cb4cd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://mylectronic.herokuapp.com/order/all","urlObject":{"protocol":"https","path":["order","all"],"host":["mylectronic","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f0f3729-0342-4673-8c31-1e80f8cb4cd4"},{"name":"GetNotification","id":"a8b05404-1f77-4271-93eb-1c12a9a34a55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://mylectronic.herokuapp.com/order/notification","urlObject":{"protocol":"https","path":["order","notification"],"host":["mylectronic","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8b05404-1f77-4271-93eb-1c12a9a34a55"},{"name":"Get Order Detail","id":"68609422-807b-4785-80db-4dde8163bad2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://mylectronic.herokuapp.com/order/4","urlObject":{"protocol":"https","path":["order","4"],"host":["mylectronic","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"68609422-807b-4785-80db-4dde8163bad2"}],"id":"e9c5f391-1836-4cf5-b6ab-507bb58c308b","_postman_id":"e9c5f391-1836-4cf5-b6ab-507bb58c308b","description":""},{"name":"User","item":[{"name":"Register","id":"5388c9b7-9a94-45d0-837a-a670adffe106","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fullname\": \"Irsad\",\n    \"email\":\"irsadmoh01@gmail.com\",\n    \"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/user/register","urlObject":{"protocol":"http","port":"8080","path":["user","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5388c9b7-9a94-45d0-837a-a670adffe106"},{"name":"Upload Avatar","id":"4aa8b1ab-32a9-4b44-983a-6418597c7c7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiIxOSIsImVtYWlsIjoid2lybGFuZGlrYWRldnJpQGdtYWlsLmNvbSIsInJvbGUiOiJ1c2VyIiwiZXhwIjoxNjU3MzAzNzUyfQ.IXMGpoC40H1s_GdPOO3m2H7zLkmlcQrlL5Q0_ZbzAXg","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"avatar","type":"file","src":"/home/dev/Downloads/unnamed.jpg"}]},"url":"http://localhost:8080/user/avatar","urlObject":{"protocol":"http","port":"8080","path":["user","avatar"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4aa8b1ab-32a9-4b44-983a-6418597c7c7f"},{"name":"VerifyEmail","id":"ea5f758a-5bd3-409d-b993-47bf25c60487","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/user/verify?i=aafa28f0799bafba5da57a4a9b3e9278db4087c6f08d12fc","urlObject":{"protocol":"http","port":"8080","path":["user","verify"],"host":["localhost"],"query":[{"key":"i","value":"aafa28f0799bafba5da57a4a9b3e9278db4087c6f08d12fc"}],"variable":[]}},"response":[],"_postman_id":"ea5f758a-5bd3-409d-b993-47bf25c60487"},{"name":"My Profil","id":"60aa4d4a-f2e7-46a0-9f9b-fbb576b68f16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiIxOSIsImVtYWlsIjoid2lybGFuZGlrYWRldnJpQGdtYWlsLmNvbSIsInJvbGUiOiJ1c2VyIiwiZXhwIjoxNjU3MzA0MDAxfQ.h6xCgX6nwK-HvFL3ZyitR5OiRJicWBWi7jIR6R6jJsI","type":"text"}],"url":"http://localhost:8080/user/me","urlObject":{"protocol":"http","port":"8080","path":["user","me"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"60aa4d4a-f2e7-46a0-9f9b-fbb576b68f16"},{"name":"GetAll","id":"23a006a5-2329-4de7-89b0-3e825ed1ed59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"role","value":"admin","type":"text"}],"url":"http://localhost:8080/user/","urlObject":{"protocol":"http","port":"8080","path":["user",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"23a006a5-2329-4de7-89b0-3e825ed1ed59"},{"name":"Get By ID","id":"481e14e9-0675-4771-b37e-130ccf08d33b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/user/user?id=37","urlObject":{"protocol":"http","port":"8080","path":["user","user"],"host":["localhost"],"query":[{"key":"id","value":"37"}],"variable":[]}},"response":[],"_postman_id":"481e14e9-0675-4771-b37e-130ccf08d33b"},{"name":"Update","id":"13d56046-fb3a-4fb3-8888-17df20abdfb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"gender\": \"Laki-Laki\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/user/update?id=37","urlObject":{"protocol":"http","port":"8080","path":["user","update"],"host":["localhost"],"query":[{"key":"id","value":"37"}],"variable":[]}},"response":[],"_postman_id":"13d56046-fb3a-4fb3-8888-17df20abdfb8"},{"name":"Get By Email","id":"2c2e53d7-cf49-4420-b4f5-2805360b3aba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/user/email?email=fajarihsan21@gmail.com","urlObject":{"protocol":"http","port":"8080","path":["user","email"],"host":["localhost"],"query":[{"key":"email","value":"fajarihsan21@gmail.com"}],"variable":[]}},"response":[],"_postman_id":"2c2e53d7-cf49-4420-b4f5-2805360b3aba"},{"name":"Delete User","id":"466999f0-6c52-438b-9995-cc7bbdd28bed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"role","value":"admin","type":"text"}],"url":"http://localhost:8080/user/delete/39","urlObject":{"protocol":"http","port":"8080","path":["user","delete","39"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"466999f0-6c52-438b-9995-cc7bbdd28bed"}],"id":"e3e4f9ae-a154-4d56-ac06-fe99bc1394c8","_postman_id":"e3e4f9ae-a154-4d56-ac06-fe99bc1394c8","description":""},{"name":"Product","item":[{"name":"GetAll","id":"7a48a939-2820-4d7c-b9ce-d1a30b9df48d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/product/","urlObject":{"protocol":"http","port":"8080","path":["product",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a48a939-2820-4d7c-b9ce-d1a30b9df48d"},{"name":"Get By ID","id":"08b6ad8b-c8dc-4e9d-8c53-3c99d4578d3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/product/item?id=23","urlObject":{"protocol":"http","port":"8080","path":["product","item"],"host":["localhost"],"query":[{"key":"id","value":"23"}],"variable":[]}},"response":[],"_postman_id":"08b6ad8b-c8dc-4e9d-8c53-3c99d4578d3e"},{"name":"Search By Name","id":"927396cd-eba5-4f8b-9020-8e2514673b7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/product/search?name=Sony","urlObject":{"protocol":"http","port":"8080","path":["product","search"],"host":["localhost"],"query":[{"key":"name","value":"Sony"}],"variable":[]}},"response":[],"_postman_id":"927396cd-eba5-4f8b-9020-8e2514673b7b"},{"name":"Sort By Category","id":"b0f1b724-cad6-4f10-b967-6cdc0a8ead76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/product/sort?category=Air Conditioner","urlObject":{"protocol":"http","port":"8080","path":["product","sort"],"host":["localhost"],"query":[{"key":"category","value":"Air Conditioner"}],"variable":[]}},"response":[],"_postman_id":"b0f1b724-cad6-4f10-b967-6cdc0a8ead76"},{"name":"Add Product","id":"fbc6baed-b976-49cd-b74a-5b4e899c75aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"role","value":"admin","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Mitsubishi New","type":"text"},{"key":"price","value":"2000000","type":"text"},{"key":"stock","value":"5","type":"text"},{"key":"description","value":"Suaangaaatt Dingin Boss","type":"text"},{"key":"category","value":"Air Conditioner","type":"text"},{"key":"avatar","type":"file","src":"/C:/Users/irsad/Pictures/Lectronic/AC/Mitsubishi.jpg"}]},"url":"http://localhost:8080/product/add","urlObject":{"protocol":"http","port":"8080","path":["product","add"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"fbc6baed-b976-49cd-b74a-5b4e899c75aa"},{"name":"Upload Image Product","id":"06f16c60-95ee-4c41-84b5-c7766070f897","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"role","value":"admin","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"avatar","type":"file","src":"/C:/Users/irsad/Pictures/Lectronic/AC/Mitsubishi.jpg"}]},"url":"http://localhost:8080/product/upload?id=24","urlObject":{"protocol":"http","port":"8080","path":["product","upload"],"host":["localhost"],"query":[{"key":"id","value":"24"}],"variable":[]}},"response":[],"_postman_id":"06f16c60-95ee-4c41-84b5-c7766070f897"},{"name":"Update Product","id":"313c9eec-d154-494f-9725-1ba066c7d4ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"role","value":"admin","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"stock\": 10\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/product/update?id=24","urlObject":{"protocol":"http","port":"8080","path":["product","update"],"host":["localhost"],"query":[{"key":"id","value":"24"}],"variable":[]}},"response":[],"_postman_id":"313c9eec-d154-494f-9725-1ba066c7d4ad"},{"name":"Delete Product","id":"b2cfd60b-0584-4897-ba90-11b437291974","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"role","value":"admin","type":"text"}],"url":"http://localhost:8080/product/delete/24","urlObject":{"protocol":"http","port":"8080","path":["product","delete","24"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2cfd60b-0584-4897-ba90-11b437291974"}],"id":"7efd913e-a48d-4c75-8076-1791ab51f526","_postman_id":"7efd913e-a48d-4c75-8076-1791ab51f526","description":""},{"name":"Review","item":[{"name":"Add Review","id":"be08e167-6162-4067-8999-062050510931","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"user_id","value":"37","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_id\": 21,\r\n    \"comment\": \"Barangnya sangat bagus dan mantap, tapi pengirimannya agak lama\",\r\n    \"rating\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/review/add","urlObject":{"protocol":"http","port":"8080","path":["review","add"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"be08e167-6162-4067-8999-062050510931"},{"name":"Get By ID","id":"e1afb64f-170c-4bb9-a8f8-acc12234114c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/review/review?id=2","urlObject":{"protocol":"http","port":"8080","path":["review","review"],"host":["localhost"],"query":[{"key":"id","value":"2"}],"variable":[]}},"response":[],"_postman_id":"e1afb64f-170c-4bb9-a8f8-acc12234114c"}],"id":"4e83919e-3140-408a-b8dd-bd54c559076d","_postman_id":"4e83919e-3140-408a-b8dd-bd54c559076d","description":""}]}