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":
|
"200":
|
||||||
description: OK
|
description: OK
|
||||||
content: { }
|
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:
|
/contests:
|
||||||
get:
|
get:
|
||||||
operationId: ListContests
|
operationId: ListContests
|
||||||
|
@ -833,6 +856,14 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
example: 1000
|
example: 1000
|
||||||
|
UploadProblemRequest:
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- archive
|
||||||
|
properties:
|
||||||
|
archive:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
UpdateContestRequest:
|
UpdateContestRequest:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Add table
Reference in a new issue