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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsegetWorkflowsByQuiz(int quizId) Retrieves all workflows associated with a specific quiz.jakarta.ws.rs.core.ResponsegetWorkflowStatus(int workflowId) Retrieves the status of a quiz generation workflow.
-
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
Responsecontaining 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
Responsecontaining a list of workflow details or an error response
-