{"openapi":"3.1.0","info":{"title":"QC Design School Course API","version":"1.0.0","description":"Read-only information about QC Design School online courses, including current tuition by country.","contact":{"name":"QC Design School","url":"https://www.qcdesignschool.com/contact-us"}},"servers":[{"url":"https://www.qcdesignschool.com/api"}],"externalDocs":{"url":"https://www.qcdesignschool.com/api-docs"},"paths":{"/courses":{"get":{"operationId":"listCourses","summary":"List all courses","responses":{"200":{"description":"The list of courses","content":{"application/json":{"schema":{"type":"object","properties":{"courses":{"type":"array","items":{"$ref":"#/components/schemas/Course"}}},"required":["courses"]}}}}}}},"/courses/{courseCode}":{"get":{"operationId":"getCourse","summary":"Get a course","parameters":[{"name":"courseCode","in":"path","required":true,"description":"The course code","schema":{"$ref":"#/components/schemas/CourseCode"}}],"responses":{"200":{"description":"The course","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Course"}}}},"404":{"description":"Course not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/courses/{courseCode}/tuition":{"get":{"operationId":"getCourseTuition","summary":"Get current tuition for a course","description":"Tuition varies by country and changes with current promotions. When no country is given, the location of the requester is used.","parameters":[{"name":"courseCode","in":"path","required":true,"description":"The course code","schema":{"$ref":"#/components/schemas/CourseCode"}},{"name":"country","in":"query","required":false,"description":"ISO 3166-1 alpha-2 country code, e.g. US","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"province","in":"query","required":false,"description":"ISO 3166-2 subdivision code without the country prefix, e.g. ON","schema":{"type":"string"}}],"responses":{"200":{"description":"The tuition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tuition"}}}},"400":{"description":"Invalid country or province","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Course not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Tuition is temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"CourseCode":{"type":"string","enum":["i2","st","ms","fs","po","ld","ed","cc","fd","ap","db","vd","ad"]},"Course":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/CourseCode"},"name":{"type":"string"},"url":{"type":"string","format":"uri","description":"The course page"},"description":{"type":["string","null"]},"certification":{"type":["string","null"],"description":"The professional designation earned on completion"},"subjects":{"type":["array","null"],"items":{"type":"string"}},"workload":{"type":["string","null"]},"tuitionUrl":{"type":"string","format":"uri"}},"required":["code","name","url","description","certification","subjects","workload","tuitionUrl"]},"Tuition":{"type":"object","properties":{"courseCode":{"$ref":"#/components/schemas/CourseCode"},"countryCode":{"type":"string"},"provinceCode":{"type":["string","null"]},"currency":{"type":"object","properties":{"code":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"}},"required":["code","symbol","name"]},"cost":{"type":"number","description":"The base tuition before discounts"},"promoDiscount":{"type":"number","description":"Any current promotional discount"},"plans":{"type":"object","properties":{"full":{"type":"object","properties":{"discount":{"type":"number","description":"The discount for choosing this payment plan"},"deposit":{"type":"number","description":"The amount due at enrollment"},"installments":{"type":"integer","description":"The number of monthly installments after the deposit"},"installmentSize":{"type":"number","description":"The size of each installment"},"total":{"type":"number","description":"The total tuition paid under this plan"}},"required":["discount","deposit","installments","installmentSize","total"],"description":"Pay in full"},"part":{"type":"object","properties":{"discount":{"type":"number","description":"The discount for choosing this payment plan"},"deposit":{"type":"number","description":"The amount due at enrollment"},"installments":{"type":"integer","description":"The number of monthly installments after the deposit"},"installmentSize":{"type":"number","description":"The size of each installment"},"total":{"type":"number","description":"The total tuition paid under this plan"}},"required":["discount","deposit","installments","installmentSize","total"],"description":"Pay a deposit followed by monthly installments"}},"required":["full","part"]},"disclaimers":{"type":"array","items":{"type":"string"}},"notes":{"type":"array","items":{"type":"string"}}},"required":["courseCode","countryCode","provinceCode","currency","cost","promoDiscount","plans","disclaimers","notes"]},"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}