feat: readme init
Showing
| { | |||
| "info": { | |||
| "_postman_id": "9258f889-5c7a-4e9b-b60a-c47a87d0eebf", | |||
| "name": "EC", | |||
| "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |||
| "_exporter_id": "1690915" | |||
| }, | |||
| "item": [ | |||
| { | |||
| "name": "Login", | |||
| "event": [ | |||
| { | |||
| "listen": "test", | |||
| "script": { | |||
| "exec": [ | |||
| "var data = pm.response.text();\r", | |||
| "pm.environment.set(\"token\", data);" | |||
| ], | |||
| "type": "text/javascript" | |||
| } | |||
| } | |||
| ], | |||
| "request": { | |||
| "method": "POST", | |||
| "header": [], | |||
| "body": { | |||
| "mode": "raw", | |||
| "raw": "{\r\n \"username\": \"user1\",\r\n \"password\": \"1234\"\r\n}", | |||
| "options": { | |||
| "raw": { | |||
| "language": "json" | |||
| } | |||
| } | |||
| }, | |||
| "url": { | |||
| "raw": "http://localhost:7168/api/login", | |||
| "protocol": "http", | |||
| "host": [ | |||
| "localhost" | |||
| ], | |||
| "port": "7168", | |||
| "path": [ | |||
| "api", | |||
| "login" | |||
| ] | |||
| } | |||
| }, | |||
| "response": [] | |||
| }, | |||
| { | |||
| "name": "Product by id", | |||
| "request": { | |||
| "auth": { | |||
| "type": "bearer", | |||
| "bearer": [ | |||
| { | |||
| "key": "token", | |||
| "value": "{{token}}", | |||
| "type": "string" | |||
| } | |||
| ] | |||
| }, | |||
| "method": "GET", | |||
| "header": [], | |||
| "url": { | |||
| "raw": "http://localhost:7168/api/product/62734a1e-ef43-4ed4-a98a-71fee6dddeba", | |||
| "protocol": "http", | |||
| "host": [ | |||
| "localhost" | |||
| ], | |||
| "port": "7168", | |||
| "path": [ | |||
| "api", | |||
| "product", | |||
| "62734a1e-ef43-4ed4-a98a-71fee6dddeba" | |||
| ] | |||
| } | |||
| }, | |||
| "response": [] | |||
| }, | |||
| { | |||
| "name": "Item by Product", | |||
| "request": { | |||
| "auth": { | |||
| "type": "bearer", | |||
| "bearer": [ | |||
| { | |||
| "key": "token", | |||
| "value": "{{token}}", | |||
| "type": "string" | |||
| } | |||
| ] | |||
| }, | |||
| "method": "GET", | |||
| "header": [], | |||
| "url": { | |||
| "raw": "http://localhost:7168/api/product", | |||
| "protocol": "http", | |||
| "host": [ | |||
| "localhost" | |||
| ], | |||
| "port": "7168", | |||
| "path": [ | |||
| "api", | |||
| "product" | |||
| ] | |||
| } | |||
| }, | |||
| "response": [] | |||
| }, | |||
| { | |||
| "name": "Products", | |||
| "request": { | |||
| "auth": { | |||
| "type": "bearer", | |||
| "bearer": [ | |||
| { | |||
| "key": "token", | |||
| "value": "{{token}}", | |||
| "type": "string" | |||
| } | |||
| ] | |||
| }, | |||
| "method": "POST", | |||
| "header": [], | |||
| "body": { | |||
| "mode": "raw", | |||
| "raw": "[\r\n \"tag3\"\r\n]", | |||
| "options": { | |||
| "raw": { | |||
| "language": "json" | |||
| } | |||
| } | |||
| }, | |||
| "url": { | |||
| "raw": "http://localhost:7168/api/product", | |||
| "protocol": "http", | |||
| "host": [ | |||
| "localhost" | |||
| ], | |||
| "port": "7168", | |||
| "path": [ | |||
| "api", | |||
| "product" | |||
| ] | |||
| } | |||
| }, | |||
| "response": [] | |||
| }, | |||
| { | |||
| "name": "Checkout", | |||
| "request": { | |||
| "auth": { | |||
| "type": "bearer", | |||
| "bearer": [ | |||
| { | |||
| "key": "token", | |||
| "value": "{{token}}", | |||
| "type": "string" | |||
| } | |||
| ] | |||
| }, | |||
| "method": "POST", | |||
| "header": [], | |||
| "body": { | |||
| "mode": "raw", | |||
| "raw": "{\r\n \"lineItems\": [\r\n {\r\n \"sku\": \"16f37131-f5aa-4b21-8582-bf8708a1c6be\",\r\n \"quantity\": 3\r\n }\r\n ],\r\n \"email\": \"[email protected]\",\r\n \"creditCard\": \"test_card\"\r\n}", | |||
| "options": { | |||
| "raw": { | |||
| "language": "json" | |||
| } | |||
| } | |||
| }, | |||
| "url": { | |||
| "raw": "http://localhost:7168/api/checkout", | |||
| "protocol": "http", | |||
| "host": [ | |||
| "localhost" | |||
| ], | |||
| "port": "7168", | |||
| "path": [ | |||
| "api", | |||
| "checkout" | |||
| ] | |||
| } | |||
| }, | |||
| "response": [] | |||
| } | |||
| ] | |||
| } | |||
| \ No newline at end of file |
Please register or sign in to comment