{"info":{"_postman_id":"55685220-bc0b-8c32-72c0-e046032943aa","name":"Node Rest API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"4119951","collectionId":"55685220-bc0b-8c32-72c0-e046032943aa","publishedId":"RVu7DTNC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-04-11T10:50:43.000Z"},"item":[{"name":"Roles: List","id":"66964930-e1d0-2d03-7dce-3e45d9e51e11","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Adm","type":"text"}]},"url":"http://localhost:3000/roles","description":"<p>Get the list of all roles available</p>\n","urlObject":{"protocol":"http","port":"3000","path":["roles"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"66964930-e1d0-2d03-7dce-3e45d9e51e11"},{"name":"Roles: Add","id":"51dc04f3-5d74-0e6c-e472-892d3daecab2","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"SubAdmin","type":"text"}]},"url":"http://localhost:3000/roles","description":"<p>Create new role</p>\n","urlObject":{"protocol":"http","port":"3000","path":["roles"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"51dc04f3-5d74-0e6c-e472-892d3daecab2"},{"name":"Role: Details by id","id":"dfc32630-0eb5-5e14-e974-9715478e9d62","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/roles/5accc96b3a0b831e6e90e504","description":"<p>Get Role Details using role ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["roles","5accc96b3a0b831e6e90e504"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfc32630-0eb5-5e14-e974-9715478e9d62"},{"name":"Role: Update","id":"4bc56ee6-c803-d145-9863-e3e10ee4dd70","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Admin","type":"text","disabled":true}]},"url":"http://localhost:3000/roles/5accc96b3a0b831e6e90e504","description":"<p>Update existing role details using role ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["roles","5accc96b3a0b831e6e90e504"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4bc56ee6-c803-d145-9863-e3e10ee4dd70"},{"name":"Role: Delete by id","id":"ffc19252-c377-d450-baf6-c0fd33230f5f","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/roles/5accc96b3a0b831e6e90e504","description":"<p>Delete Role using Role ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["roles","5accc96b3a0b831e6e90e504"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ffc19252-c377-d450-baf6-c0fd33230f5f"},{"name":"Users: List","id":"e46ce028-cec6-e667-3fa9-72e370e58593","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Adm","type":"text"}]},"url":"http://localhost:3000/users","description":"<p>Get List of all existing users</p>\n","urlObject":{"protocol":"http","port":"3000","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e46ce028-cec6-e667-3fa9-72e370e58593"},{"name":"Users: Add","id":"7989d8f1-e7bb-0801-cacb-16a7dfa70513","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Admin","type":"text"},{"key":"email","value":"paras@mail.com","type":"text"},{"key":"password","value":"123456","type":"text"},{"key":"roles[]","value":"5acb5e4a0d0d4b1918f4784b","type":"text"},{"key":"profileImage","value":null,"type":"file"}]},"url":"http://localhost:3000/users","description":"<p>Create new user by providing valid details</p>\n","urlObject":{"protocol":"http","port":"3000","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7989d8f1-e7bb-0801-cacb-16a7dfa70513"},{"name":"Users: Details by id","id":"523e4c54-b0d5-9a6b-e299-105e39f817b8","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/users/5accbd45d3a4380d5ec71ef8","description":"<p>Retrive details of existing user using user ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["users","5accbd45d3a4380d5ec71ef8"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"523e4c54-b0d5-9a6b-e299-105e39f817b8"},{"name":"User: Update","id":"2b8212b5-bd5f-82cd-add6-2a54d34f1ab0","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Paras Kale","type":"text"},{"key":"email","value":"paras@imperialsoftech.com","type":"text"}]},"url":"http://localhost:3000/users/5acda63007eaa2384c56e5ce","description":"<p>Update existing user by using user ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["users","5acda63007eaa2384c56e5ce"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b8212b5-bd5f-82cd-add6-2a54d34f1ab0"},{"name":"User: Delete by id","id":"37e7082a-bad7-6099-3375-efb01146c217","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/users/5acda5dc66e7e33784976b79","description":"<p>Delete user using user ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["users","5acda5dc66e7e33784976b79"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"37e7082a-bad7-6099-3375-efb01146c217"},{"name":"Auth: Signup","id":"941bef7a-07e1-1532-6c8b-0ab58baed6aa","request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Vikas","type":"text"},{"key":"email","value":"vikas@mail.com","type":"text"},{"key":"password","value":"123456","type":"text"}]},"url":"localhost:3000/auth/signup","description":"<p>Signup by providing valid credentials</p>\n","urlObject":{"port":"3000","path":["auth","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"941bef7a-07e1-1532-6c8b-0ab58baed6aa"},{"name":"Auth: Login","id":"80580107-2398-61de-89ae-1d6d2b2ddecc","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"vikasasdf@mail.com","type":"text"},{"key":"password","value":"123456","type":"text"}]},"url":"localhost:3000/auth/login","description":"<p>Logins with valid credentials</p>\n","urlObject":{"port":"3000","path":["auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"80580107-2398-61de-89ae-1d6d2b2ddecc"},{"name":"Auth: Forgot Password","id":"4c4f1f62-34c6-09aa-f314-c7c5dc293cef","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"swapnaliasdf@mail.com","type":"text"}]},"url":"localhost:3000/auth/forgotPassword","description":"<p>Provide Registered Email Address to get the resetcode</p>\n","urlObject":{"port":"3000","path":["auth","forgotPassword"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c4f1f62-34c6-09aa-f314-c7c5dc293cef"},{"name":"Auth : Reset Password","id":"1bd0e018-2528-122d-0bae-38990a00219a","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"reset_code","value":"dhHlmI0zKfLZ","type":"text"},{"key":"new_password","value":"145236","type":"text"}]},"url":"localhost:3000/auth/resetPassword","description":"<p>Reset password by providing reset code and new password. Reset code is valid till one hour after you request for reset code. After one hour you have to submit new request for getting new reset code</p>\n","urlObject":{"port":"3000","path":["auth","resetPassword"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1bd0e018-2528-122d-0bae-38990a00219a"},{"name":"Category: List","id":"786e1c12-4792-64b9-dd2a-25eaaa2a3292","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1YWNkZDY2MDNjZmNjNDM0MmEwNzIzNzQiLCJpYXQiOjE1MjM0NDEzMDN9.0XXRVNLouzqO2IT_gfrTpAXbscxXgcIIpHoxNS6irdU"}],"body":{"mode":"formdata","formdata":[]},"url":"localhost:3000/categories","description":"<p>Fetched All Category</p>\n","urlObject":{"port":"3000","path":["categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"786e1c12-4792-64b9-dd2a-25eaaa2a3292"},{"name":"Category: Add","id":"2153e15d-847f-f070-4c63-6b60b38a0a2f","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"computer312121121","type":"text"},{"key":"image","type":"file","src":"computer.jpg"},{"key":"description","value":"This is Computer Category121121212","type":"text"}]},"url":"localhost:3000/categories/","description":"<p>Insert new category by providing name, image and category description</p>\n","urlObject":{"port":"3000","path":["categories",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2153e15d-847f-f070-4c63-6b60b38a0a2f"},{"name":"Category: Details By id","id":"ea9ae441-b28e-7abb-13a6-816013b7b085","request":{"method":"GET","header":[],"url":"http://localhost:3000/categories/5accad741de79065746a98ac","description":"<p>Retrive the category details from category ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["categories","5accad741de79065746a98ac"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea9ae441-b28e-7abb-13a6-816013b7b085"},{"name":"Category: Update","id":"214d647a-e220-b52b-d5a7-ea9efbdfc330","request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Computer12","type":"text"},{"key":"image","value":null,"type":"file"}]},"url":"http://localhost:3000/categories/5acc9acf3a988f53b64b906e","description":"<p>Update the existing category by category ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["categories","5acc9acf3a988f53b64b906e"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"214d647a-e220-b52b-d5a7-ea9efbdfc330"},{"name":"Category: Delete by id","id":"1cb5ef65-3314-8a89-6729-50f5e12847dd","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/categories/5acda1850706b12d915e65af","description":"<p>Delete the category using category ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["categories","5acda1850706b12d915e65af"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1cb5ef65-3314-8a89-6729-50f5e12847dd"},{"name":"Product: Details By Id","id":"af993adf-41a3-82bf-3715-fff6ac4b0ce1","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:3000/products/5acda704640dc71578601903","description":"<p>Get Specific Product Details using product ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["products","5acda704640dc71578601903"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"af993adf-41a3-82bf-3715-fff6ac4b0ce1"},{"name":"Product: Add","id":"b9104648-8420-5ec2-b13b-520eeb4c7403","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"DELL Computer","type":"text"},{"key":"category","value":"5acc9acf3a988f53b64b906e","type":"text"},{"key":"image","type":"file","src":"dell.jpg"},{"key":"description","value":"DELL Computer with high configuration","type":"text"}]},"url":"localhost:3000/products","description":"<p>Add new product</p>\n","urlObject":{"port":"3000","path":["products"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9104648-8420-5ec2-b13b-520eeb4c7403"},{"name":"Product: Update","id":"ec06cf07-38ff-140f-7233-46d54b2082fc","request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Dell Computer ABTS7854","type":"text"}]},"url":"http://localhost:3000/products/5acd98d3ef03b6210eca07cc","description":"<p>Update existing product using product ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["products","5acd98d3ef03b6210eca07cc"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec06cf07-38ff-140f-7233-46d54b2082fc"},{"name":"Product: Delete by id","id":"406690e7-1e66-fe85-80c7-b02e5f0c65d3","request":{"method":"DELETE","header":[],"url":"http://localhost:3000/products/5acd98c8ef03b6210eca07cb","description":"<p>Delete product using product ID</p>\n","urlObject":{"protocol":"http","port":"3000","path":["products","5acd98c8ef03b6210eca07cb"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"406690e7-1e66-fe85-80c7-b02e5f0c65d3"},{"name":"Product: Get All Records","id":"1ad83db3-e43f-184c-4deb-2fe6015254c8","request":{"method":"GET","header":[],"url":"localhost:3000/products","description":"<p>Get all product list</p>\n","urlObject":{"port":"3000","path":["products"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ad83db3-e43f-184c-4deb-2fe6015254c8"}]}