{"openapi":"3.1.0","info":{"title":"Course Prerequisite Readiness","version":"1.0.0","description":"List courses a learner can start now and the unmet prerequisites for each blocked course.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/course-prerequisite-readiness/v1/check":{"post":{"operationId":"course_prerequisite_readiness","summary":"List courses a learner can start now and the unmet prerequisites for each blocked course.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"completed":{"maxItems":400,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"courses":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"requires":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["id","requires"],"additionalProperties":false}}},"required":["completed","courses"],"additionalProperties":false},"example":{"completed":["intro"],"courses":[{"id":"intro","requires":[]},{"id":"lab","requires":["intro"]},{"id":"studio","requires":["lab","intro"]}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"ready":["lab"],"blocked":[{"id":"studio","missing":["lab"]}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}