{"openapi":"3.1.0","info":{"title":"Quiz Distractor Analysis","version":"1.0.0","description":"Summarize answer-choice selection rates, omitted responses and distractors that fail a minimum selection threshold.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/quiz-distractor-analysis/v1/check":{"post":{"operationId":"quiz_distractor_analysis","summary":"Summarize answer-choice selection rates, omitted responses and distractors that fail a minimum selection threshold.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"responses":{"type":"integer","minimum":1,"maximum":1000000},"correct":{"type":"string","minLength":1,"maxLength":60},"distractor_min_percent":{"type":"number","minimum":0,"maximum":100},"choices":{"minItems":2,"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","minLength":1,"maxLength":60},"selections":{"type":"integer","minimum":0,"maximum":1000000}},"required":["option","selections"],"additionalProperties":false}}},"required":["responses","correct","distractor_min_percent","choices"],"additionalProperties":false},"example":{"responses":20,"correct":"b","distractor_min_percent":10,"choices":[{"option":"a","selections":1},{"option":"b","selections":14},{"option":"c","selections":3}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"omitted":2,"correct_percent":70,"choices":[{"option":"a","percent":5,"underselected":true},{"option":"b","percent":70,"underselected":false},{"option":"c","percent":15,"underselected":false}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}