{"info":{"_postman_id":"854e723a-2091-27c7-29a0-f1408f29a8fa","name":"navigate.fw","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>Navigate.fw is an API providing geospacial data for freewar.de.</p>\n<h1 id=\"status\">Status</h1>\n<p>The API is still in the ALPHA phase and is currently tested extensively.</p>\n<h1 id=\"overview\">Overview</h1>\n<p>It can</p>\n<ul>\n<li>calculate the shortest path between two locations</li>\n<li>calculate the moves to get from one location to another</li>\n</ul>\n<h1 id=\"authentication\">Authentication</h1>\n<p>The API is free to use and does not require any authentification.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>500 - internal server errors can occur in rare cases ;)\nPlease report any bugs or problems under: <a href=\"https://github.com/EatingBacon/navigate.fw/issues\">https://github.com/EatingBacon/navigate.fw/issues</a></p>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>There will be no rate limiting as long as it isn't needed.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Status","slug":"status"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"2366223","collectionId":"854e723a-2091-27c7-29a0-f1408f29a8fa","publishedId":"7TFDtxN","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-01-13T22:59:19.000Z"},"item":[{"name":"Get path from bank to post","event":[{"listen":"test","script":{"id":"da60552d-f034-4aee-a66f-46af1c28b258","type":"text/javascript","exec":["pm.test(\"Check correct response of path from bank to post.\", function () {","    const testData = [","        [","            92,","            105","        ],","        [","            91,","            104","        ]","    ]","    const jsonData = pm.response.json();","    pm.expect(jsonData).to.eql(testData);","});"]}}],"id":"90e9c4b5-23e7-aee6-9a46-e0f08e25213d","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"start: (92, 105), dest: (103, 107)"},"url":"http://{{url}}/path?start_x=92&start_y=105&dest_x=91&dest_y=104","urlObject":{"protocol":"http","path":["path"],"host":["{{url}}"],"query":[{"key":"start_x","value":"92"},{"key":"start_y","value":"105"},{"key":"dest_x","value":"91"},{"key":"dest_y","value":"104"}],"variable":[]}},"response":[],"_postman_id":"90e9c4b5-23e7-aee6-9a46-e0f08e25213d"},{"name":"Get moves from bank to post","event":[{"listen":"test","script":{"id":"3827197e-c887-40ae-8f6f-bc259f04cb2f","type":"text/javascript","exec":["pm.test(\"Check correct response of moves from bank to post.\", function () {","    const testData = [","        [","            -1,","            -1","        ]","    ]","    const jsonData = pm.response.json();","    pm.expect(jsonData).to.eql(testData);","});"]}}],"id":"3f0870ea-eac4-bb92-1f51-a291a6b5e4b8","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://{{url}}/moves?start_x=92&start_y=105&dest_x=91&dest_y=104","urlObject":{"protocol":"http","path":["moves"],"host":["{{url}}"],"query":[{"key":"start_x","value":"92"},{"key":"start_y","value":"105"},{"key":"dest_x","value":"91"},{"key":"dest_y","value":"104"}],"variable":[]}},"response":[],"_postman_id":"3f0870ea-eac4-bb92-1f51-a291a6b5e4b8"}]}