Add Problem Json
Changed onAdds a problem to the database based on its JSON definition.
Args: json_file (UploadFile): a file in JSON format describing the problem. user (Annotated[User, Depends): the usr for which the problem is added. session (Annotated[Session, Depends): the database session.
Raises: HTTPException: if the provided json_file is empty. HTTPException: if the content in the provided json_file is not in JSON format.annotations
Returns: ProblemInfo: a description of the added problem.
post/problem/add_json
Request
- The document declares no server URL.
- Auth
- OAuth 2PasswordToken URLlogin
- or API key in cookie access_token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Response
Successful Response
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking