{"info":{"_postman_id":"dc43d5f1-a780-477e-89d2-99c54ec15d07","name":"Motionalysis Libraries API","description":"<html><head></head><body><p>This API is a set of simple endpoints designed to provide a fast and easy method of using the motionalysis libraries.  The Main folder must be declared in the \"LibPath\" endpoint or the \"Resize\" endpoint ie:\"PkgLib\" and the two main categories are; \"Corrugated\" and \"Folding Carton\". Beyond that point you may use any naming and organizational structure you like.  The api will allow the client to select a template based on it's location in a comma separated list, ie: \"Corrugated,MySubCategory,MyTemplate.moa\".  The Select endpoint returns a json object containing the key/value pairs of variables in the template.  The client modifies the variables' key/value pairs and submits the changes to the Resolve endpoint and is returned either the resized geometry xml stream or the resulting error condition.  The \"Resize\" endpoint is an \"all in one\" call that provides the required info for a complete round trip of any template.  The \"Resize\" endpoint assumes the user system will read, store and supply the proper set of variables for the template requested.  Providing the wrong information will produce unexpected results and errors. If needed, the resized template geometry can be exported in any of the formats found in SampleMakerCAD by including the format's extension.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8585900","collectionId":"dc43d5f1-a780-477e-89d2-99c54ec15d07","publishedId":"TzXumf8d","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-05-24T18:37:27.000Z"},"item":[{"name":"localhost:8292/Init","id":"7cbf0e6e-2f65-4a9f-8746-9a5c464b4e1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8292/Init","description":"<p>Start by initializing the service to make sure it's ready to use::</p>\n","urlObject":{"protocol":"http","port":"8292","path":["Init"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7cbf0e6e-2f65-4a9f-8746-9a5c464b4e1d"},{"name":"http://localhost:8292/LibPath","id":"a2e1fc89-67f4-4f44-8495-1d69514e8ac2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"C:\\Users\\sean arney\\Documents\\PkgLib"},"url":"http://127.0.0.1:8292/LibPath","description":"<p><em>Win10 version --</em> \nNext, set the path location to the \"PkgLib\" folder or the folder that contains your motionalysis library templates</p>\n","urlObject":{"protocol":"http","port":"8292","path":["LibPath"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"a2e1fc89-67f4-4f44-8495-1d69514e8ac2"},{"name":"http://localhost:8292/LibPathDebug","id":"a41dea67-670f-4e5f-90bb-82f47275b878","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"C:\\Users\\sean arney\\Documents\\PkgLib"},"url":"http://127.0.0.1:8292/LibPath","description":"<p><em>Win10 version --</em> \nNext, set the path location to the \"PkgLib\" folder or the folder that contains your motionalysis library templates</p>\n","urlObject":{"protocol":"http","port":"8292","path":["LibPath"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"a41dea67-670f-4e5f-90bb-82f47275b878"},{"name":"http://localhost:8292/LibPathMac","id":"fb75f7e8-f461-433b-ac56-7aee46e4c8e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"/Users/seanarney/Documents/Motionalysis Files/PkgLib/"},"url":"http://127.0.0.1:8292/LibPath","description":"<p><em>MacOS version --</em> Next, set the path location to the \"PkgLib\" folder or the folder that contains your motionalysis library templates</p>\n","urlObject":{"protocol":"http","port":"8292","path":["LibPath"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb75f7e8-f461-433b-ac56-7aee46e4c8e1"},{"name":"http://localhost:8292/Select","id":"0cf708b9-28a1-4c0d-a633-47174840f431","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"Corrugated,Roll Ends,B001_Economy Cherry Locks Dust.moa"},"url":"http://127.0.0.1:8292/Select","description":"<p>Select the template you want to resize by sending the main category, sub category, and template file name as a comma separated list to this endpoint. This example is selecting an encrypted .moa file. The return contents will contain the key/value pairs required to resize the template.  The units will be in mm. The result is typically as below but varies according to the parameters used in the template:</p>\n<p><code>{   \"Allowance\": \"3.000000\",   \"Depth\": \"101.600000\",   \"Length\": \"304.800000\",   \"Width\": \"254.000000\" }</code></p>\n","urlObject":{"protocol":"http","port":"8292","path":["Select"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"0cf708b9-28a1-4c0d-a633-47174840f431"},{"name":"http://localhost:8292/SelOverc","id":"8573168b-19f7-44ea-857e-670b87eda4d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"Corrugated,Roll Ends,B001_Economy Cherry Locks Dust.moa"},"url":"http://127.0.0.1:8292/Select","description":"<p>Select the template you want to resize by sending the main category, sub category, and template file name as a comma separated list to this endpoint. This example is selecting an encrypted .moa file. The return contents will contain the key/value pairs required to resize the template.  The units will be in mm. The result is typically as below but varies according to the parameters used in the template:</p>\n<p><code>{   \"Allowance\": \"3.000000\",   \"Depth\": \"101.600000\",   \"Length\": \"304.800000\",   \"Width\": \"254.000000\" }</code></p>\n","urlObject":{"protocol":"http","port":"8292","path":["Select"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8573168b-19f7-44ea-857e-670b87eda4d6"},{"name":"http://localhost:8292/SelectSMAK","id":"a9dc163c-1bf2-4a48-9096-78eb16ca94d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"Corrugated,Attachments,M007_Hand Hole Scored.smak"},"url":"http://127.0.0.1:8292/Select","description":"<p>Select the template you want to resize by sending the main category, sub category, and template file name as a comma separated list to this endpoint. This example is selecting an open source .smak file. The return contents will contain the key/value pairs required to resize the template.  The units will be in mm. The units will be in mm. The result is typically as below but varies according to the parameters used in the template:</p>\n<p><code>{   \"Allowance\": \"3.000000\",   \"Depth\": \"101.600000\",   \"Length\": \"304.800000\",   \"Width\": \"254.000000\" }</code></p>\n","urlObject":{"protocol":"http","port":"8292","path":["Select"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"a9dc163c-1bf2-4a48-9096-78eb16ca94d7"},{"name":"http://localhost:8292/Resolve","id":"dde3d2e2-3f14-4e01-99b0-d534e6282ce9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"Allowance\": \"3.000000\",\r\n    \"Depth\": \"101.600000\",\r\n    \"Length\": \"304.800000\",\r\n    \"Width\": \"254.000000\"\r\n}"},"url":"http://127.0.0.1:8292/Resolve","description":"<p>Change the variable values you received from selecting the template and send them back to this endpoint to get a resized template's geometry descriptions. The result is either geometry xml stream such as below (abbreviated) or an error message:</p>\n<p><code>&lt;GEOMETRIES&gt;     &lt;dimension&gt;         &lt;type type=\"linear\"/&gt;         &lt;p1 x=\"152.39999999999998\" y=\"-4.5\"/&gt;         &lt;p2 x=\"141.0307686470218\" y=\"-4.5\"/&gt;         &lt;a1 x=\"153.60577136594009\" y=\"-0\"/&gt;         &lt;a2 x=\"141.0307686470218\" y=\"-0\"/&gt;</code>\n...</p>\n","urlObject":{"protocol":"http","port":"8292","path":["Resolve"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"dde3d2e2-3f14-4e01-99b0-d534e6282ce9"},{"name":"http://localhost:8292/ResOverc","id":"f403a914-0050-4755-9a77-8ada72ce417e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"Allowance\": \"3.000000\",\r\n    \"Depth\": \"25.400000\",\r\n    \"Length\": \"304.800000\",\r\n    \"Width\": \"254.000000\",\r\n    \"SlotLength\":\"76.200000\"\r\n}"},"url":"http://127.0.0.1:8292/Resolve","description":"<p>Change the variable values you received from selecting the template and send them back to this endpoint to get a resized template's geometry descriptions. The result is either geometry xml stream such as below (abbreviated) or an error message:</p>\n<p><code>&lt;GEOMETRIES&gt;     &lt;dimension&gt;         &lt;type type=\"linear\"/&gt;         &lt;p1 x=\"152.39999999999998\" y=\"-4.5\"/&gt;         &lt;p2 x=\"141.0307686470218\" y=\"-4.5\"/&gt;         &lt;a1 x=\"153.60577136594009\" y=\"-0\"/&gt;         &lt;a2 x=\"141.0307686470218\" y=\"-0\"/&gt;</code>\n...</p>\n","urlObject":{"protocol":"http","port":"8292","path":["Resolve"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f403a914-0050-4755-9a77-8ada72ce417e"},{"name":"http://localhost:8292/Resize","id":"70c7ed32-9f26-435a-b396-ee4d22213531","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"LibPath\":\"C:\\\\Users\\\\sean arney\\\\Documents\\\\PkgLib\",\r\n        \"Category\":\"Corrugated\",\r\n        \"SubCategory\":\"Roll Ends\",\r\n        \"Item\":\"B001_Economy Cherry Locks Dust.moa\",\r\n        \"variables\":{\r\n            \"Allowance\": \"3.000000\",\r\n            \"Depth\": \"101.600000\",\r\n            \"Length\": \"304.800000\",\r\n            \"Width\": \"254.000000\"\r\n        }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8292/Resize","description":"<p>Include a complete json object containing the below requirements. Upon success, this endpoint will return a resized template's geometry descriptions. The result is either geometry xml stream such as below (abbreviated) or an error message:</p>\n<p><code>&lt;GEOMETRIES&gt;     &lt;dimension&gt;         &lt;type type=\"linear\"/&gt;         &lt;p1 x=\"152.39999999999998\" y=\"-4.5\"/&gt;         &lt;p2 x=\"141.0307686470218\" y=\"-4.5\"/&gt;         &lt;a1 x=\"153.60577136594009\" y=\"-0\"/&gt;         &lt;a2 x=\"141.0307686470218\" y=\"-0\"/&gt;</code>\n...</p>\n","urlObject":{"protocol":"http","port":"8292","path":["Resize"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"70c7ed32-9f26-435a-b396-ee4d22213531"},{"name":"http://localhost:8292/Resize2","id":"3f036665-9661-4a7f-bd59-4e5aaa57aac2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"LibPath\":\"C:\\\\Users\\\\sean arney\\\\Documents\\\\PkgLib\",\r\n        \"Category\":\"Corrugated\",\r\n        \"SubCategory\":\"FEFCOs\",\r\n        \"Item\":\"B0452.moa\",\r\n        \"variables\":{\r\n            \"Allowance\": \"3.000000\",\r\n            \"Depth\": \"25.400000\",\r\n            \"Length\": \"304.800000\",\r\n            \"SlotLength\": \"76.200000\",\r\n            \"Width\": \"254.000000\"\r\n        }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8292/Resize","description":"<p>Include a complete json object containing the below requirements. Upon success, this endpoint will return a resized template's geometry descriptions. The result is either geometry xml stream such as below (abbreviated) or an error message:</p>\n<p><code>&lt;GEOMETRIES&gt;     &lt;dimension&gt;         &lt;type type=\"linear\"/&gt;         &lt;p1 x=\"152.39999999999998\" y=\"-4.5\"/&gt;         &lt;p2 x=\"141.0307686470218\" y=\"-4.5\"/&gt;         &lt;a1 x=\"153.60577136594009\" y=\"-0\"/&gt;         &lt;a2 x=\"141.0307686470218\" y=\"-0\"/&gt;</code>\n...</p>\n","urlObject":{"protocol":"http","port":"8292","path":["Resize"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f036665-9661-4a7f-bd59-4e5aaa57aac2"},{"name":"http://localhost:8292/ResizeSMAK","id":"0d5cf0d8-7046-45c0-9730-bc59df842fec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"LibPath\":\"C:\\\\Users\\\\sean arney\\\\Documents\\\\PkgLib\",\r\n        \"Category\":\"Corrugated\",\r\n        \"SubCategory\":\"Roll Ends\",\r\n        \"Item\":\"B001_Economy Cherry Locks Dust.moa\",\r\n        \"variables\":{\r\n            \"Allowance\": \"3.000000\",\r\n            \"Depth\": \"101.600000\",\r\n            \"Length\": \"304.800000\",\r\n            \"Width\": \"254.000000\"\r\n        }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8292/Resize","description":"<p>Include a complete json object containing the below requirements. Upon success, this endpoint will return a resized template's geometry descriptions. The result is either geometry xml stream such as below (abbreviated) or an error message:</p>\n<p><code>&lt;GEOMETRIES&gt;     &lt;dimension&gt;         &lt;type type=\"linear\"/&gt;         &lt;p1 x=\"152.39999999999998\" y=\"-4.5\"/&gt;         &lt;p2 x=\"141.0307686470218\" y=\"-4.5\"/&gt;         &lt;a1 x=\"153.60577136594009\" y=\"-0\"/&gt;         &lt;a2 x=\"141.0307686470218\" y=\"-0\"/&gt;</code>\n...</p>\n","urlObject":{"protocol":"http","port":"8292","path":["Resize"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d5cf0d8-7046-45c0-9730-bc59df842fec"},{"name":"http://localhost:8292/ResolveSMAK","id":"06c65dfa-a685-443c-a24a-d16ace148965","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"AccessHeight\": \"19.050000\",\r\n    \"HandleLength\": \"63.500000\"\r\n}"},"url":"http://127.0.0.1:8292/Resolve","description":"<p>Change the variable values you received from selecting the template and send them back to this endpoint to get a resized template's geometry descriptions. This example shows resizing a .smak file.The result is either geometry xml stream such as below (abbreviated) or an error message:</p>\n<p><code>&lt;GEOMETRIES&gt;     &lt;dimension&gt;         &lt;type type=\"linear\"/&gt;         &lt;p1 x=\"152.39999999999998\" y=\"-4.5\"/&gt;         &lt;p2 x=\"141.0307686470218\" y=\"-4.5\"/&gt;         &lt;a1 x=\"153.60577136594009\" y=\"-0\"/&gt;         &lt;a2 x=\"141.0307686470218\" y=\"-0\"/&gt; &lt;line&gt;         &lt;p1 x=\"0\" y=\"-91.200000000000301\"/&gt;         &lt;p2 x=\"92.599999999999781\" y=\"-91.200000000000301\"/&gt;         &lt;layer name=\"Thru-cut\"/&gt;         &lt;detail ID=\"0\"/&gt;     &lt;/line&gt;     &lt;line&gt;         &lt;p1 x=\"0\" y=\"-532.00000000000023\"/&gt;         &lt;p2 x=\"100.09999999999998\" y=\"-532.00000000000023\"/&gt;         &lt;layer name=\"Crease\"/&gt;         &lt;detail ID=\"0\"/&gt;     &lt;/line&gt;     &lt;line&gt;         &lt;p1 x=\"0\" y=\"-218.2000000000003\"/&gt;         &lt;p2 x=\"100.09999999999998\" y=\"-218.2000000000003\"/&gt;         &lt;layer name=\"Crease\"/&gt;         &lt;detail ID=\"0\"/&gt;     &lt;/line&gt;     &lt;line&gt;         &lt;p1 x=\"0\" y=\"-659.00000000000023\"/&gt;         &lt;p2 x=\"0\" y=\"-532.00000000000023\"/&gt;         &lt;layer name=\"Thru-cut\"/&gt;         &lt;detail ID=\"0\"/&gt;     &lt;/line&gt;     &lt;line&gt;         &lt;p1 x=\"0\" y=\"-532.00000000000023\"/&gt;         &lt;p2 x=\"0\" y=\"-218.2000000000003\"/&gt;         &lt;layer name=\"Thru-cut\"/&gt;         &lt;detail ID=\"0\"/&gt;     &lt;/line&gt;     &lt;line&gt;         &lt;p1 x=\"0\" y=\"-218.2000000000003\"/&gt;         &lt;p2 x=\"0\" y=\"-91.200000000000301\"/&gt;         &lt;layer name=\"Thru-cut\"/&gt;         &lt;detail ID=\"0\"/&gt;     &lt;/line&gt;     &lt;line&gt;         &lt;p1 x=\"304.79999999999967\" y=\"-745.70000000000005\"/&gt;         &lt;p2 x=\"355.59999999999968\" y=\"-745.70000000000005\"/&gt;         &lt;layer name=\"Thru-cut\"/&gt;         &lt;detail ID=\"0\"/&gt;     &lt;/line&gt;</code>\n...</p>\n","urlObject":{"protocol":"http","port":"8292","path":["Resolve"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"06c65dfa-a685-443c-a24a-d16ace148965"},{"name":"http://localhost:8292/Export","id":"8326848b-5b7f-47a4-83c4-15d9fb41b53b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"C:\\Users\\seana\\OneDrive\\Desktop\\B004_RE 1 Tab Cherry Locks.dxf"},"url":"http://127.0.0.1:8292/Export","description":"<p>You can export any template that you want after resolving it by sending this endpoint the location and name of a valid file handle suffixed with the format you desire.  The formats and their acceptable suffixes can be seen in free SampleMakerCAD.  This example uses .dxf, the AutoDesk data exchange format.</p>\n","urlObject":{"protocol":"http","port":"8292","path":["Export"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8326848b-5b7f-47a4-83c4-15d9fb41b53b"},{"name":"http://localhost:8292/ExportMac","id":"54ca69c1-47ac-423f-85f3-5433b47e2a53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"/Users/seanarney/Desktop/MoaExport2.svg"},"url":"http://127.0.0.1:8292/Export","description":"<p>You can export any template that you want after resolving it by sending this endpoint the location and name of a valid file handle suffixed with the format you desire.  The formats and their acceptable suffixes can be seen in free SampleMakerCAD.  This example uses .svg, the scaled vector graphics format.</p>\n","urlObject":{"protocol":"http","port":"8292","path":["Export"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"54ca69c1-47ac-423f-85f3-5433b47e2a53"}]}