{"openapi":"3.0.0","info":{"title":"INITE Education API","description":"AI-powered learning engine API for accessing courses and AI tutoring","version":"1.0.0","contact":{"name":"INITE Education","email":"info@inite.education","url":"https://inite.education"}},"servers":[{"url":"https://inite.education","description":"Production server"}],"paths":{"/api/chat":{"post":{"summary":"Chat with AI tutor","description":"Send a message to the AI tutor and receive a streaming response","operationId":"chatWithAI","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant","system"]},"content":{"type":"string"}}}},"courseId":{"type":"string","description":"ID of the current course"}},"required":["messages"]}}}},"responses":{"200":{"description":"Successful response with streaming AI messages","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"Bad request"},"500":{"description":"Internal server error"}}}},"/course/{courseId}":{"get":{"summary":"Get course details","description":"Retrieve detailed information about a specific course","operationId":"getCourse","parameters":[{"name":"courseId","in":"path","required":true,"schema":{"type":"string","enum":["chatgpt-mastery","midjourney-art","stable-diffusion","english-for-business","marketing-analytics","sales-onboarding","anti-parasitism-course"]},"description":"The ID of the course"}],"responses":{"200":{"description":"Course details","content":{"text/html":{"schema":{"type":"string"}}}},"404":{"description":"Course not found"}}}}},"components":{"schemas":{"Course":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"},"level":{"type":"string","enum":["beginner","intermediate","advanced"]},"modules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"content":{"type":"string"}}}}}}}}}