Add Problem Json
Adds 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.
Response
Successful Response
Changes
Changed in 2 of the 2 revisions of this API.11
- ○
endpoint added
endpoint-added
This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 103 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲