{"info":{"_postman_id":"387fb8ef-8bba-4d16-a70a-6ccc8164dcc6","name":"Cable Assembly Server","description":"<html><head></head><body><p>The Cable Assembly Server runs as part of Cable Assembly. The server allows external sources to interact with the application, instructing Cable Assembly what test to run or populating the serial number and custom fields of a loaded test.</p>\n<h2 id=\"notes\">Notes</h2>\n<ul>\n<li>The Cable Assembly Server runs on port 26000 of the computer while the application is open.</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"31432902","collectionId":"387fb8ef-8bba-4d16-a70a-6ccc8164dcc6","publishedId":"2s9YeG5BBU","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-28T13:43:42.000Z"},"item":[{"name":"Push Test Plan","id":"5dc36cd8-2966-42cc-821f-25dfb64dd1f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"dutSerialNum\": \"DuplicatedSN\",\r\n    \"testPlan\": {\r\n        \"uuid\": \"3fc068d2-428f-4bb8-a5f0-8d512dcbad95\"\r\n    },\r\n    \"testBlocksToRun\": [\r\n        {\r\n            \"uuid\": \"44002621-b2b3-41a9-aa3b-ac97d4d40ff9\",\r\n            \"fields\": {\r\n            }\r\n        }\r\n    ],\r\n    \"retryMode\": \"default\"\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:26000/api/pushTestPlan","description":"<p>Push a test (test plan and test block) to Cable Assembly. Optionally, push the serial number and custom fields values.</p>\n<h2 id=\"notes\">Notes</h2>\n<ul>\n<li><p>Returns 200-OK if the application recieves the data and successfully parses it.</p>\n</li>\n<li><p>The structure of the data is to maintain compatibility with existing XNS API calls. Only the first test block in the <code>testBlocksToRun</code> field will be loaded by Cable Assembly.</p>\n</li>\n<li><p>The UUIDs for test plans and test blocks can be retrieved using the appropratie API calls to the XNS server.</p>\n</li>\n<li><p>The test will fail to load in Cable Assembly if the test is invalid (invalid test plan or test block) or if another test is already in progress.</p>\n</li>\n<li><p>If the current test block has been completed and the application is waiting for user input (ie. Next DUT), Cable Assembly will go to the next DUT then load the pushed test plan.</p>\n</li>\n</ul>\n","urlObject":{"port":"26000","path":["api","pushTestPlan"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"5dc36cd8-2966-42cc-821f-25dfb64dd1f4"},{"name":"Push Fields","id":"cada91c0-0a8c-4727-9efb-0490f7939ad3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"dutSerialNum\": \"fwKI4WXR-3\",\r\n    \"fields\": {\r\n                \"Batch\": \"0pzI7flSY-5\",\r\n                \"Customer\": \"Q-2\",\r\n                \"AnotherCustomField\": \"of-2\"\r\n            }\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:26000/api/pushFields","description":"<p>Push a serial number and/or custom field values to a loaded test.</p>\n<h2 id=\"notes\">Notes</h2>\n<ul>\n<li><p>Returns 200-OK if the application recieves the data and successfully parses it.</p>\n</li>\n<li><p>Both the serial number and custom field values are optional.</p>\n</li>\n<li><p>The fields will fail to load in Cable Assembly if another test is already in progress. This includes if the current test block has been completed and the application is waiting for user input.</p>\n</li>\n</ul>\n","urlObject":{"port":"26000","path":["api","pushFields"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cada91c0-0a8c-4727-9efb-0490f7939ad3"}]}