mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
22 lines
575 B
TypeScript
22 lines
575 B
TypeScript
import { Type } from '@fastify/type-provider-typebox';
|
|
import { STANDARD_ERROR } from '../utils/errors.js';
|
|
|
|
export const examEnvironmentPostExamGeneratedExam = {
|
|
body: Type.Object({
|
|
examId: Type.String()
|
|
}),
|
|
headers: Type.Object({
|
|
'exam-environment-authorization-token': Type.String()
|
|
}),
|
|
response: {
|
|
200: Type.Object({
|
|
exam: Type.Record(Type.String(), Type.Unknown()),
|
|
examAttempt: Type.Record(Type.String(), Type.Unknown())
|
|
}),
|
|
403: STANDARD_ERROR,
|
|
404: STANDARD_ERROR,
|
|
429: STANDARD_ERROR,
|
|
500: STANDARD_ERROR
|
|
}
|
|
};
|