{"info":{"_postman_id":"ea1c534e-b270-4a53-93d0-8f7e33d4765a","name":"Hoax - Product/Item management","description":"<html><head></head><body><p>Rest API that manages products/items</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15715947","collectionId":"ea1c534e-b270-4a53-93d0-8f7e33d4765a","publishedId":"2s93RMVawv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-23T15:17:30.000Z"},"item":[{"name":"Products","item":[{"name":"fetchProductById","id":"b2b0456a-b21a-41d2-af6f-f0384988d5f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3200/api/products/fetch-product/:productId","urlObject":{"protocol":"http","port":"3200","path":["api","products","fetch-product",":productId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"2","key":"productId"}]}},"response":[],"_postman_id":"b2b0456a-b21a-41d2-af6f-f0384988d5f3"},{"name":"updateProduct","id":"f78df934-c8d2-4f60-a301-3f99fbc20e71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"published\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3200/api/products/update-product/:productId","urlObject":{"protocol":"http","port":"3200","path":["api","products","update-product",":productId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"productId"}]}},"response":[],"_postman_id":"f78df934-c8d2-4f60-a301-3f99fbc20e71"},{"name":"deleteProduct","id":"a54dd476-9b76-4c50-be28-ab67e1fd43c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3200/api/products/delete-product/:productId","urlObject":{"protocol":"http","port":"3200","path":["api","products","delete-product",":productId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"5","key":"productId"}]}},"response":[],"_postman_id":"a54dd476-9b76-4c50-be28-ab67e1fd43c8"},{"name":"addProducts","id":"61b7eb81-c1a6-4b37-89fc-10cb04dc6b5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"leather palm\",\r\n    \"currency\": \"Nigerian Naira\",\r\n    \"price\": 10000,\r\n    \"description\": \"leather palm for males\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3200/api/products/add-product","urlObject":{"protocol":"http","port":"3200","path":["api","products","add-product"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"61b7eb81-c1a6-4b37-89fc-10cb04dc6b5b"},{"name":"fetchProductsByProductName","id":"6a8a355f-d0d3-4e27-a8f5-cb8bcae0025c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3200/api/products/fetch-products/:productName","urlObject":{"protocol":"http","port":"3200","path":["api","products","fetch-products",":productName"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"Nike sneakers","key":"productName"}]}},"response":[],"_postman_id":"6a8a355f-d0d3-4e27-a8f5-cb8bcae0025c"},{"name":"fetchAllProducts","id":"55982342-7604-424c-a631-1d503e7e8656","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3200/api/products/all-products","urlObject":{"protocol":"http","port":"3200","path":["api","products","all-products"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"55982342-7604-424c-a631-1d503e7e8656"}],"id":"8ad99a1a-4972-49f2-9179-2484734dccf4","_postman_id":"8ad99a1a-4972-49f2-9179-2484734dccf4","description":""},{"name":"Comments","item":[{"name":"fetchProductComments","id":"7588fcb9-5c4c-45f5-b926-ac67fc08078d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3200/api/products/fetch-comments/:productId","urlObject":{"protocol":"http","port":"3200","path":["api","products","fetch-comments",":productId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"4","key":"productId"}]}},"response":[],"_postman_id":"7588fcb9-5c4c-45f5-b926-ac67fc08078d"},{"name":"addComment","id":"bf9dde00-989b-4513-ae5b-ecc497b2f89b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"comment\": \"product is price reasonable\",\r\n    \"product_id\": 4\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3200/api/comments/add-comment","urlObject":{"protocol":"http","port":"3200","path":["api","comments","add-comment"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf9dde00-989b-4513-ae5b-ecc497b2f89b"}],"id":"0b83d684-7525-477c-b6cd-b79678df867e","_postman_id":"0b83d684-7525-477c-b6cd-b79678df867e","description":""},{"name":"Ratings","item":[{"name":"fetchProductRatings","id":"dd881707-3f45-4b74-8f64-2439236934c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3200/api/products/fetch-ratings/:productId","urlObject":{"protocol":"http","port":"3200","path":["api","products","fetch-ratings",":productId"],"host":["localhost"],"query":[],"variable":[{"id":"788f09e9-eea8-46a0-8e47-61019be2722d","type":"any","value":"3","key":"productId"}]}},"response":[],"_postman_id":"dd881707-3f45-4b74-8f64-2439236934c6"},{"name":"addRating","id":"e406102e-dd28-46d5-b9fb-857ef8786bb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"rating\": 2,\r\n    \"product_id\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3200/api/ratings/add-rating","urlObject":{"protocol":"http","port":"3200","path":["api","ratings","add-rating"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e406102e-dd28-46d5-b9fb-857ef8786bb5"}],"id":"a69995d0-f629-446d-b632-33558853ca93","_postman_id":"a69995d0-f629-446d-b632-33558853ca93","description":""}]}