Problems
Endpoints for managing problems
Creates a new problem using the provided data.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequiredExample:
Name of the problem
Sum of Two NumbersdescriptionstringRequiredExample:
Description of the problem
Calculate the sum of two integers.inDatastringRequiredExample:
Input data for the problem
1outDatastringRequiredExample:
Expected output data for the problem
3testsstringRequiredExample:
Test cases for the problem (JSON)
{"in":"1","out":"3"}examplesstringRequiredExample:
Example cases for the problem (JSON)
{"in":"1","out":"3"}Responses
200
OK
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
409
Conflict
*/*
500
Internal Server Error
*/*
post
/api/problemsRetrieves a problem by its ID. Required admin role
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idinteger · int64Required
Responses
200
OK
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
409
Conflict
*/*
500
Internal Server Error
*/*
get
/api/problems/{id}Applies partial updates to a problem by its ID.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idinteger · int64Required
Body
anyOptional
Responses
200
OK
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
409
Conflict
*/*
500
Internal Server Error
*/*
patch
/api/problems/{id}Retrieves a problem by its ID with admin-level access. Required admin role
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idinteger · int64Required
Responses
200
OK
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
409
Conflict
*/*
500
Internal Server Error
*/*
get
/api/problems/{id}/adminLast updated
Was this helpful?