feat: UploadProblem
This commit is contained in:
parent
f00483d24a
commit
89b4b19ae3
1 changed files with 31 additions and 0 deletions
|
@ -99,6 +99,29 @@ paths:
|
|||
"200":
|
||||
description: OK
|
||||
content: { }
|
||||
post:
|
||||
operationId: UploadProblem
|
||||
security:
|
||||
- bearerAuth: [ ]
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
example: 3
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/UploadProblemRequest'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
content: { }
|
||||
|
||||
/contests:
|
||||
get:
|
||||
operationId: ListContests
|
||||
|
@ -833,6 +856,14 @@ components:
|
|||
type: integer
|
||||
format: int32
|
||||
example: 1000
|
||||
UploadProblemRequest:
|
||||
type: object
|
||||
required:
|
||||
- archive
|
||||
properties:
|
||||
archive:
|
||||
type: string
|
||||
format: binary
|
||||
UpdateContestRequest:
|
||||
type: object
|
||||
properties:
|
||||
|
|
Loading…
Add table
Reference in a new issue