Class QuizGenerationRest

java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.rs.AbstractRestEndpoint
fr.paris.lutece.plugins.wiki.modules.ai.rs.QuizGenerationRest

@RequestScoped @Path("wiki/ai/quiz-generation") public class QuizGenerationRest extends AbstractRestEndpoint
REST endpoint for quiz generation workflow operations.
  • Constructor Details

    • QuizGenerationRest

      public QuizGenerationRest()
  • Method Details

    • getWorkflowStatus

      @GET @Path("workflow/{workflowId}") @Produces("application/json") public jakarta.ws.rs.core.Response getWorkflowStatus(@PathParam("workflowId") int workflowId)
      Retrieves the status of a quiz generation workflow.
      Parameters:
      workflowId - the identifier of the workflow to retrieve
      Returns:
      a Response containing the workflow status details or an error response
    • getWorkflowsByQuiz

      @GET @Path("quiz/{quizId}/workflows") @Produces("application/json") public jakarta.ws.rs.core.Response getWorkflowsByQuiz(@PathParam("quizId") int quizId)
      Retrieves all workflows associated with a specific quiz.
      Parameters:
      quizId - the identifier of the quiz
      Returns:
      a Response containing a list of workflow details or an error response