UNPKG

ocapi-proxy

Version:

Salesforce Commerce Cloud OCAPI Proxy Router

103 lines 2.53 kB
{ "info": { "_postman_id": "b4cc8832-9d39-46b5-af22-cf61db921f03", "name": "OCAPI-Proxy", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Customer Auth ", "event": [ { "listen": "test", "script": { "id": "48c03b10-7936-49d1-9251-fef4cd896343", "exec": [ "var jsonData = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"Bearer\", postman.getResponseHeader('Authorization'));", "postman.setEnvironmentVariable(\"customer_id\",jsonData.customer_id);", "postman.setEnvironmentVariable(\"customer_no\",jsonData.customer_no);", "postman.setEnvironmentVariable(\"email\",jsonData.email);", "tests['Authorization: '+postman.getResponseHeader('Authorization')] = postman.getResponseHeader('Authorization');", "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "XXXXXX", "type": "string" }, { "key": "username", "value": "user@demandware.com", "type": "string" }, { "key": "saveHelperData", "value": true, "type": "boolean" }, { "key": "showPassword", "value": false, "type": "boolean" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.", "key": "Authorization", "value": "Basic MzYyZjAxMDItNjU0Yy00ODFiLTk1MjktNzMyOGQ0YTU3MDhlOk16WXlaakF4TURJdE5qVTBZeTAwT0RGaUxUazFNamt0TnpNeU9HUTBZVFUzTURobE9nPT0=", "disabled": true }, { "key": "x-dw-client-id", "value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }, { "key": "Origin", "value": "https://{{url}}", "disabled": true }, { "key": "x-dw-client-id", "type": "text", "value": "5003458a-2365-4abe-8ade-25f46b582cf6", "disabled": true }, { "key": "callurl", "value": "customers/auth", "type": "text" } ], "body": { "mode": "raw", "raw": "{ \"type\" : \"guest\"}" }, "url": { "raw": "http://localhost:8080", "protocol": "http", "host": [ "localhost" ], "port": "8080" } }, "response": [] } ] }