{"openapi":"3.1.0","info":{"title":"Community Garden Plot Match","version":"1.0.0","description":"Maximize the number of households assigned to acceptable garden plots, using the supplied preference order during matching.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/community-garden-plot-match/v1/check":{"post":{"operationId":"community_garden_plot_match","summary":"Maximize the number of households assigned to acceptable garden plots, using the supplied preference order during matching.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plots":{"maxItems":120,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"applicants":{"maxItems":120,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"ranked_plots":{"maxItems":120,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["id","ranked_plots"],"additionalProperties":false}}},"required":["plots","applicants"],"additionalProperties":false},"example":{"plots":["east","west"],"applicants":[{"id":"first","ranked_plots":["east","west"]},{"id":"second","ranked_plots":["east"]},{"id":"third","ranked_plots":["east"]}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"assignments":[{"applicant":"first","plot":"west","preference_rank":2},{"applicant":"second","plot":"east","preference_rank":1}],"unmatched":["third"]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}