{"info":{"_postman_id":"66074954-9795-4b07-b301-a374080f95ba","name":"Dummy Ecom APIs","description":"<html><head></head><body><p>Dummy Ecom APIs can be used with any type of shopping project that needs products and users in JSON format. you can use examples below to check how Dummy Ecom APIs works and feel free to enjoy it in your awesome projects.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15835730","collectionId":"66074954-9795-4b07-b301-a374080f95ba","publishedId":"TzmChYYZ","public":true,"customColor":{"top-bar":"0F1117","right-sidebar":"171D23","highlight":"FFC727"},"publishDate":"2021-07-18T17:16:14.000Z"},"item":[{"name":"Authentication","item":[{"name":"Login","id":"411d922f-b73b-4348-a3e8-eb7a2f605134","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"antriksh","type":"text"},{"key":"password","value":"gzjGy63rkJ3xU8S","type":"text"}]},"url":"{{BASE_URL}}/api/v1/auth/login/","description":"<p>Returns <strong>Token</strong></p>\n","urlObject":{"path":["api","v1","auth","login",""],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"411d922f-b73b-4348-a3e8-eb7a2f605134"},{"name":"Logout","id":"62077ad5-6847-4501-bdf5-37b3d5fabb36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Token 56e02d3de33ffae5f855494e173af4dc8ff56d09","type":"text"}],"url":"{{BASE_URL}}/api/v1/auth/logout/","description":"<p>Delete the token associated with that user.</p>\n","urlObject":{"path":["api","v1","auth","logout",""],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"62077ad5-6847-4501-bdf5-37b3d5fabb36"},{"name":"Get all users","id":"a325bcc6-3986-4df2-bfef-100ba1cf1f90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/users/","description":"<p>Returns all username and their password. These credentials can be used in Login request.</p>\n","urlObject":{"path":["api","v1","users",""],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a325bcc6-3986-4df2-bfef-100ba1cf1f90"}],"id":"8104a5ef-1f60-4d31-9374-85fcb6941c90","description":"<p>You can use any of the user's username and password available in users API to get token. Any other usernames return error.</p>\n","_postman_id":"8104a5ef-1f60-4d31-9374-85fcb6941c90"},{"name":"Products","item":[{"name":"Get all products","id":"f2fc0976-3dce-461c-80c7-4a83bbd64ed0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/products/","description":"<p>Return product of all categories.</p>\n","urlObject":{"path":["api","v1","products",""],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2fc0976-3dce-461c-80c7-4a83bbd64ed0"},{"name":"Search product","id":"d7d19dd3-ad2d-4318-a84f-075e426afff7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/products/?search=game","description":"<p>Search products of any category by keywords.</p>\n","urlObject":{"path":["api","v1","products",""],"host":["{{BASE_URL}}"],"query":[{"key":"search","value":"game"}],"variable":[]}},"response":[],"_postman_id":"d7d19dd3-ad2d-4318-a84f-075e426afff7"},{"name":"Get product by category name","id":"c974de00-e64f-47cc-a798-4fb0b1193f15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/products/?product_category=ToysAndCollectibles","description":"<p>Return all products associated with that category name.</p>\n","urlObject":{"path":["api","v1","products",""],"host":["{{BASE_URL}}"],"query":[{"key":"product_category","value":"ToysAndCollectibles"}],"variable":[]}},"response":[],"_postman_id":"c974de00-e64f-47cc-a798-4fb0b1193f15"},{"name":"Limit","id":"f67a4886-a78a-4eba-9ac5-ffb8d4222f02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/products/?product_category=ToysAndCollectibles&limit=2","description":"<p>Use <strong>limit</strong> and <strong>sort</strong> as a query string to get your ideal results.</p>\n","urlObject":{"path":["api","v1","products",""],"host":["{{BASE_URL}}"],"query":[{"key":"product_category","value":"ToysAndCollectibles"},{"key":"limit","value":"2"}],"variable":[]}},"response":[],"_postman_id":"f67a4886-a78a-4eba-9ac5-ffb8d4222f02"},{"name":"Sort","id":"2e8759bf-39e1-4bc2-958a-e1f63fc6ad40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/products/?ordering=product_price","description":"<p>Sorting can be done by <strong>product_price</strong> and <strong>product_name</strong>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Sort</th>\n<th>query</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Sort by product name ascending order</td>\n<td>?ordering=product_name</td>\n</tr>\n<tr>\n<td>Sort by product name descending order</td>\n<td>?ordering=**-**product_name</td>\n</tr>\n<tr>\n<td>Sort by product price ascending order</td>\n<td>?ordering=product_price</td>\n</tr>\n<tr>\n<td>Sort by product price descending order</td>\n<td>?ordering=**-**product_price</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","products",""],"host":["{{BASE_URL}}"],"query":[{"key":"ordering","value":"product_price"}],"variable":[]}},"response":[],"_postman_id":"2e8759bf-39e1-4bc2-958a-e1f63fc6ad40"},{"name":"Get product by ID","id":"1b0fdc3c-321d-4b6b-9a00-e4a43f8c35d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/products/?id=5","description":"<p>Return single product details of particular id.</p>\n","urlObject":{"path":["api","v1","products",""],"host":["{{BASE_URL}}"],"query":[{"key":"id","value":"5"}],"variable":[]}},"response":[],"_postman_id":"1b0fdc3c-321d-4b6b-9a00-e4a43f8c35d3"},{"name":"Price range","id":"97dbb39a-a835-4066-83c6-3ef559163a85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/products/?min=1000&max=1500","description":"<p>Return products according to the minimum and maximum prices.</p>\n","urlObject":{"path":["api","v1","products",""],"host":["{{BASE_URL}}"],"query":[{"key":"min","value":"1000"},{"key":"max","value":"1500"}],"variable":[]}},"response":[],"_postman_id":"97dbb39a-a835-4066-83c6-3ef559163a85"},{"name":"Ratings range","id":"43779e43-77f2-4e40-80ef-18e3f323398b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/products/?rating_min=2&rating_max=5","description":"<p>Return products according to the minimum and maximum ratings.</p>\n","urlObject":{"path":["api","v1","products",""],"host":["{{BASE_URL}}"],"query":[{"key":"rating_min","value":"2"},{"key":"rating_max","value":"5"}],"variable":[]}},"response":[],"_postman_id":"43779e43-77f2-4e40-80ef-18e3f323398b"}],"id":"509a8e56-6c26-459f-9523-ebd873bd95ea","description":"<p>Search a product by key words, id, categories or filters.</p>\n","_postman_id":"509a8e56-6c26-459f-9523-ebd873bd95ea"},{"name":"Category","item":[{"name":"Get all Categories","id":"55a142dd-b03f-4e44-b616-ec12989777a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/category/","description":"<p>Returns all categories.</p>\n","urlObject":{"path":["api","v1","category",""],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"55a142dd-b03f-4e44-b616-ec12989777a4"},{"name":"Sort","id":"f3e640f4-b9f3-40a6-ba07-5d9cc95626d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/category/?ordering=category_name","description":"<p>Sorting queries can be used with any request.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Sort</th>\n<th>query</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Sort by name ascending order</td>\n<td>?ordering=category_name</td>\n</tr>\n<tr>\n<td>Sort by name descending order</td>\n<td>?ordering=-category_name</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","category",""],"host":["{{BASE_URL}}"],"query":[{"key":"ordering","value":"category_name"}],"variable":[]}},"response":[],"_postman_id":"f3e640f4-b9f3-40a6-ba07-5d9cc95626d9"},{"name":"Get category by ID","id":"e46d8cfb-2dc3-4553-8a77-0105b186b289","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/category/?id=3","description":"<p>Return single category details of particular id.</p>\n","urlObject":{"path":["api","v1","category",""],"host":["{{BASE_URL}}"],"query":[{"key":"id","value":"3"}],"variable":[]}},"response":[],"_postman_id":"e46d8cfb-2dc3-4553-8a77-0105b186b289"},{"name":"Get category by name","id":"881c149c-2caf-4deb-92a4-a47e9c1e8be3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"{{api_header}}","value":"{{API_KEY}}","type":"text"}],"url":"{{BASE_URL}}/api/v1/category/?category_name=Appliances","description":"<p>Return single category details of particular name.</p>\n","urlObject":{"path":["api","v1","category",""],"host":["{{BASE_URL}}"],"query":[{"key":"category_name","value":"Appliances"}],"variable":[]}},"response":[],"_postman_id":"881c149c-2caf-4deb-92a4-a47e9c1e8be3"}],"id":"4efef172-bc29-4fa1-b5b1-87bb73ab919b","description":"<p>Get category by id, category name or filters.</p>\n","_postman_id":"4efef172-bc29-4fa1-b5b1-87bb73ab919b"}]}