Admin - Holiday Courses

Generate Exercise Solution For Admin

Generate a plausible solution for an exercise using AI.

This endpoint:

  1. Takes an exercise statement (LaTeX/HTML) and optional difficulty level
  2. Uses an LLM to generate a step-by-step solution
  3. Returns the generated solution formatted for KaTeX rendering

Only accessible by admin users.

post/admin/holiday-courses/exercises/generate-solution

Request

  • Base URL: https://api.excellence-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.excellence-ai.com/admin/holiday-courses/exercises/generate-solution
  • Auth: OAuth 2 (password, token URL api/login)

Request body

exercise_contentstring required
difficulty'easy' | 'medium' | 'hard' nullable

Response

Successful Response

generated_solutionstring required

Changes

No operation changes recorded.