{"info":{"_postman_id":"17b3abef-bfd5-41b3-8311-0bc54abdfcb9","name":"Nodejs Shop","description":"<html><head></head><body><p>This project is a RESTful API built with Node.js and<br>Express, designed to power an e-commerce platform. It provides essential<br>functionalities such as product listing, product creation, and checkout<br>handling using Stripe for payment processing. The API is backed by<br>MongoDB, with Mongoose as the ODM.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"31079873","collectionId":"17b3abef-bfd5-41b3-8311-0bc54abdfcb9","publishedId":"2sAYX5M3M8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-02-04T12:08:48.000Z"},"item":[{"name":"Get All Products","id":"69780d57-f1a8-4aba-afc5-c15ebcfa4758","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://shop-api-wx9a.onrender.com/api/shop","description":"<p>Get the entire list of products stored in the MongoDB databases.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"name\": \"Call Of Dutty\",\n    \"price\": 50.99,\n    \"image\": \"img-url.com\",\n    \"category\": \"Playstation\",\n    \"stripeId\": \"stripeId\",\n    \"id\": \"679cb4c3c4f0af3addd1804b\"\n  }  \n]\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","shop"],"host":["shop-api-wx9a","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"69780d57-f1a8-4aba-afc5-c15ebcfa4758"},{"name":"Create Product","id":"aadbdae9-0af1-4cca-a127-2bd28d197fa7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/shop","description":"<p>Add a new product to the MongoDB databases.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"Spiderman 2\",\n    \"price\": 58,\n    \"image\": \"img-url.com\",\n    \"category\": \"Steam\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["api","shop"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"aadbdae9-0af1-4cca-a127-2bd28d197fa7"},{"name":"Checkout","id":"ad47d74a-ccd5-4703-be07-3c0a6be2aff5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://shop-api-wx9a.onrender.com/api/shop/checkout","description":"<p>This endpoint handles payments by sending products to the Stripe API and returning a URL to redirect users to the Stripe website to complete the purchase. After the user completes the payment they are returned to the Home Web Page.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[{\n    \"name\": \"Spiderman 2\",\n    \"price\": 58,\n    \"image\": \"img-url.com\",\n    \"category\": \"Steam\",\n    \"stripeId\": \"stripeId\",\n    \"qty\": 1\n}]\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","shop","checkout"],"host":["shop-api-wx9a","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad47d74a-ccd5-4703-be07-3c0a6be2aff5"}]}