{"openapi":"3.1.0","info":{"title":"Warehouse Pick Path","version":"1.0.0","description":"Find the shortest aisle path between each consecutive stop in a fixed pick order using the supplied one-way or two-way aisle links.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/warehouse-pick-path/v1/check":{"post":{"operationId":"warehouse_pick_path","summary":"Find the shortest aisle path between each consecutive stop in a fixed pick order using the supplied one-way or two-way aisle links.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"start":{"type":"string","minLength":1,"maxLength":80},"stops":{"maxItems":40,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"links":{"maxItems":300,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":80},"to":{"type":"string","minLength":1,"maxLength":80},"meters":{"type":"integer","minimum":1,"maximum":1000000},"two_way":{"type":"boolean"}},"required":["from","to","meters","two_way"],"additionalProperties":false}}},"required":["start","stops","links"],"additionalProperties":false},"example":{"start":"dock","stops":["a","b"],"links":[{"from":"dock","to":"a","meters":10,"two_way":true},{"from":"dock","to":"mid","meters":2,"two_way":true},{"from":"mid","to":"a","meters":5,"two_way":true},{"from":"a","to":"b","meters":2,"two_way":false}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"total_meters":9,"legs":[{"from":"dock","to":"a","meters":7,"path":["dock","mid","a"]},{"from":"a","to":"b","meters":2,"path":["a","b"]}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}