{ "info": { "_postman_id": "ce5a3105-2ff9-459e-b442-ab1b6da738cd", "name": "API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Product List", "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/vnd.api+json", "type": "text" }, { "key": "Accept", "value": "application/vnd.api+json", "type": "text" } ], "url": { "raw": "{{BASE_URL}}/api/products", "host": [ "{{BASE_URL}}" ], "path": [ "api", "products" ] } }, "response": [] }, { "name": "Product Fixture", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/vnd.api+json", "type": "text" }, { "key": "Accept", "value": "application/vnd.api+json", "type": "text" } ], "url": { "raw": "{{BASE_URL}}/api/products_fixtures", "host": [ "{{BASE_URL}}" ], "path": [ "api", "products_fixtures" ] } }, "response": [] }, { "name": "Product Show", "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/vnd.api+json", "type": "text" }, { "key": "Accept", "value": "application/vnd.api+json", "type": "text" } ], "url": { "raw": "{{BASE_URL}}/api/products/1", "host": [ "{{BASE_URL}}" ], "path": [ "api", "products", "1" ] } }, "response": [] }, { "name": "Order Store", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/vnd.api+json", "type": "text" }, { "key": "Accept", "value": "application/vnd.api+json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"type\": \"orders\",\n \"attributes\": { },\n \"relationships\": {\n \"products\": {\n \"data\": [\n { \"type\": \"products\", \"id\": \"1\" },\n { \"type\": \"products\", \"id\": \"2\" },\n { \"type\": \"products\", \"id\": \"3\" }\n ]\n }\n }\n }\n}" }, "url": { "raw": "{{BASE_URL}}/api/orders", "host": [ "{{BASE_URL}}" ], "path": [ "api", "orders" ] } }, "response": [] }, { "name": "Order Payment", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/vnd.api+json", "type": "text" }, { "key": "Accept", "value": "application/vnd.api+json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"type\": \"payments\",\n \"attributes\": {\n \"amount\": 10111.8\n }\n }\n}" }, "url": { "raw": "{{BASE_URL}}/api/orders/1/payments", "host": [ "{{BASE_URL}}" ], "path": [ "api", "orders", "1", "payments" ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "id": "8950c15a-b1da-4724-8728-de9b5d9c8458", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "67175650-cafb-43c7-a61a-ffabe199256a", "type": "text/javascript", "exec": [ "" ] } } ], "protocolProfileBehavior": {} }