Answer
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idinteger · int64Required
Responses
200
OK
*/*
idinteger · int64OptionalExample:
Unique identifier of the answer
1statusstring · enumRequiredExample:
Current status of the answer
IN_PROGRESSPossible values: scoreinteger · int32OptionalExample:
Score awarded for the answer
100codestringRequiredExample:
Code submitted by the user
print('Hello, World!')resultstringOptionalExample:
Result of the code execution
SuccesscreatedAtstring · date-timeRequiredExample:
Timestamp when the answer was created
2023-01-01T12:00:00Z401
Unauthorized
*/*
403
Forbidden
*/*
409
Conflict
*/*
500
Internal Server Error
*/*
get
/api/answers/{id}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
compProblemIdinteger · int64Required
The ID of CompetitionProblem id
userIdinteger · int64Required
The ID of the user
Responses
200
OK
*/*
idinteger · int64OptionalExample:
Unique identifier of the answer
1statusstring · enumRequiredExample:
Current status of the answer
IN_PROGRESSPossible values: scoreinteger · int32OptionalExample:
Score awarded for the answer
100codestringRequiredExample:
Code submitted by the user
print('Hello, World!')resultstringOptionalExample:
Result of the code execution
SuccesscreatedAtstring · date-timeRequiredExample:
Timestamp when the answer was created
2023-01-01T12:00:00Z401
Unauthorized
*/*
403
Forbidden
*/*
409
Conflict
*/*
500
Internal Server Error
*/*
get
/api/answers/lastLast updated