Created
January 13, 2023 09:45
-
-
Save erichard/058b20def8452fdc03cbe7ce0fb38745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"requests": [ | |
{ | |
"auth": { | |
"value": "", | |
"authType": "none", | |
"authActive": true, | |
"addTo": "Headers", | |
"key": "" | |
}, | |
"preRequestScript": "", | |
"testScript": "pw.test(\"Response is ok\", () => {\n pw.expect(pw.response.status).toBe(200);\n\n pw.env.set(\"token\", pw.response.body.token); \n});\n\n", | |
"v": "1", | |
"endpoint": "<<domain>>/login", | |
"name": "Login", | |
"body": { | |
"body": "{\n \"username\": \"kickers\",\n \"password\": \"oms\"\n}\n", | |
"contentType": "application/json" | |
}, | |
"method": "POST", | |
"params": [], | |
"headers": [] | |
} | |
], | |
"v": 1, | |
"name": "Auth", | |
"folders": [] | |
}, | |
{ | |
"name": "Catalog", | |
"folders": [], | |
"v": 1, | |
"requests": [ | |
{ | |
"testScript": "", | |
"name": "GET products", | |
"endpoint": "<<domain>>/products.csv", | |
"params": [], | |
"method": "POST", | |
"body": { | |
"body": null, | |
"contentType": null | |
}, | |
"v": "1", | |
"headers": [], | |
"auth": { | |
"addTo": "Headers", | |
"value": "", | |
"authActive": true, | |
"key": "", | |
"authType": "bearer", | |
"token": "<<token>>" | |
}, | |
"preRequestScript": "" | |
}, | |
{ | |
"v": "1", | |
"endpoint": "<<domain>>/variants.csv", | |
"name": "GET variants", | |
"params": [], | |
"headers": [], | |
"method": "POST", | |
"auth": { | |
"authType": "bearer", | |
"key": "", | |
"value": "", | |
"token": "<<token>>", | |
"addTo": "Headers", | |
"authActive": true | |
}, | |
"preRequestScript": "", | |
"testScript": "", | |
"body": { | |
"body": null, | |
"contentType": null | |
} | |
}, | |
{ | |
"v": "1", | |
"endpoint": "<<domain>>/products.csv", | |
"name": "GET products", | |
"params": [], | |
"headers": [], | |
"method": "POST", | |
"auth": { | |
"addTo": "Headers", | |
"value": "", | |
"authActive": true, | |
"key": "", | |
"authType": "bearer", | |
"token": "<<token>>" | |
}, | |
"preRequestScript": "", | |
"testScript": "", | |
"body": { | |
"body": null, | |
"contentType": null | |
} | |
} | |
] | |
}, | |
{ | |
"folders": [], | |
"requests": [ | |
{ | |
"v": "1", | |
"endpoint": "<<domain>>/stocks", | |
"name": "GET stock", | |
"params": [], | |
"headers": [], | |
"method": "POST", | |
"auth": { | |
"value": "", | |
"token": "<<token>>", | |
"authType": "bearer", | |
"addTo": "Headers", | |
"key": "", | |
"authActive": true | |
}, | |
"preRequestScript": "", | |
"testScript": "", | |
"body": { | |
"contentType": null, | |
"body": null | |
} | |
} | |
], | |
"name": "Stock", | |
"v": 1 | |
}, | |
{ | |
"requests": [ | |
{ | |
"name": "POST order", | |
"endpoint": "<<domain>>/orders", | |
"preRequestScript": "", | |
"method": "POST", | |
"auth": { | |
"authType": "bearer", | |
"addTo": "Headers", | |
"token": "<<token>>", | |
"key": "", | |
"authActive": true, | |
"value": "" | |
}, | |
"params": [], | |
"v": "1", | |
"headers": [ | |
{ | |
"value": "application/json", | |
"active": true, | |
"key": "Accept" | |
} | |
], | |
"body": { | |
"body": "{\n \"source\": \"kickers\",\n \"source_order_id\": 300023,\n \"created_at\": \"2022-01-09 16:34:12\",\n \"customer\": {\n \"lastname\": \"Richard\",\n \t\"firstname\": \"Erwan\",\n \t\"email\": \"erwan.richard@protonmail.com\",\n \t\"phone\": \"0647266589\",\n \"locale\": \"FR\",\n \"code\": \"123123\"\n },\n \"gift_message\": \"\",\n \"billing_address\": {\n \"recipient\": \"Erwan Richard\",\n \"street_address\": \"17 rue de la métairie\",\n \"complement_address\": \"maison 5\",\n \"city\": \"Orvault\",\n \"postal_code\": \"44700\",\n \"country\": \"FR\"\n },\n \"shipping_method\": \"standard_fr\",\n \"shipping_address\": {\n \"recipient\": \"Erwan Richard\",\n \"street_address\": \"17 rue de la métairie\",\n \"complement_address\": \"maison 5\",\n \"city\": \"Orvault\",\n \"postal_code\": \"44700\",\n \"country\": \"FR\"\n },\n \"items\": [\n {\n \"ean\": \"3616425474165\",\n \"quantity\": 2\n },\n {\n \"ean\": \"0190737880027\",\n \"quantity\": 2\n }\n ]\n}", | |
"contentType": "application/json" | |
}, | |
"testScript": "" | |
} | |
], | |
"folders": [], | |
"name": "Orders", | |
"v": 1 | |
}, | |
{ | |
"folders": [], | |
"name": "Legacy", | |
"v": 1, | |
"requests": [ | |
{ | |
"body": { | |
"contentType": "multipart/form-data", | |
"body": [ | |
{ | |
"active": true, | |
"value": "[ { \"ean13\": \"3616426711221\", \"quantity\": 2}]", | |
"isFile": false, | |
"key": "products" | |
} | |
] | |
}, | |
"preRequestScript": "", | |
"v": "1", | |
"method": "POST", | |
"endpoint": "<<legacy>>/dispatchRequest", | |
"name": "POST DispatchRequest", | |
"params": [], | |
"testScript": "", | |
"headers": [ | |
{ | |
"active": true, | |
"value": "application/json", | |
"key": "Accept" | |
}, | |
{ | |
"value": "", | |
"active": true, | |
"key": "Content-Type" | |
} | |
], | |
"auth": { | |
"authType": "none", | |
"addTo": "Headers", | |
"value": "", | |
"token": "<<token>>", | |
"key": "", | |
"authActive": true | |
} | |
}, | |
{ | |
"v": "1", | |
"endpoint": "<<domain>>/api/v1/order", | |
"name": "POST Encours", | |
"params": [], | |
"headers": [ | |
{ | |
"key": "Accept", | |
"value": "application/json", | |
"active": true | |
}, | |
{ | |
"key": "Content-Type", | |
"active": true, | |
"value": "" | |
} | |
], | |
"method": "POST", | |
"auth": { | |
"token": "<<token>>", | |
"authType": "none", | |
"authActive": true, | |
"addTo": "Headers", | |
"value": "", | |
"key": "" | |
}, | |
"preRequestScript": "", | |
"testScript": "", | |
"body": { | |
"body": [ | |
{ | |
"isFile": false, | |
"value": "[ { \"ean13\": \"3616425200849\", \"reference\": \"895000-50-73\", \"quantity\": 1, \"isCombination\": true, \"warehouse_reference\": \"ORLI-MAU_RO\" }]", | |
"key": "items", | |
"active": true | |
} | |
], | |
"contentType": "multipart/form-data" | |
} | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment