AiPrompt
Sends a custom AI prompt and retrieves the response.
Authorizations
Body
instructionstring | nullableOptional
contentsstring[] | nullableOptional
Responses
200
OK
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /api/Ai/Prompt HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"instruction": "text",
"contents": [
"text"
]
}
No content
Generates an exam description using AI based on the provided query.
Authorizations
Body
titlestring | nullableOptional
userPromptstring | nullableOptional
Responses
200
OK
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /api/Ai/Generate/ExamDescription HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"title": "text",
"userPrompt": "text"
}
{
"description": "text"
}
Generates a problem-solving question using AI based on the provided query.
Authorizations
Body
userPromptstring | nullableOptional
Responses
200
OK
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /api/Ai/Generate/ProblemSolvingQuestion HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"userPrompt": "text"
}
{
"statementMarkdown": "text",
"testCases": [
{
"input": "text",
"output": "text"
}
]
}
Generates a written question using AI based on the provided query.
Authorizations
Body
userPromptstring | nullableOptional
Responses
200
OK
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /api/Ai/Generate/WrittenQuestion HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"userPrompt": "text"
}
{
"questionStatement": "text"
}
Reviews a problem submission using AI.
Authorizations
Path parameters
problemSubmissionIdstring · uuidRequired
The ID of the problem submission to review.
Responses
200
OK
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
post
POST /api/Ai/Review/ProblemSubmission/{problemSubmissionId} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"review": "text",
"score": 1
}
Reviews a written submission using AI.
Authorizations
Path parameters
submissionIdstring · uuidRequired
The ID of the written submission to review.
Responses
200
OK
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
post
POST /api/Ai/Review/WrittenSubmission/{submissionId} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"review": "text",
"score": 1
}