feat(tester):
This commit is contained in:
parent
ac0eb56bb9
commit
3913140399
1 changed files with 76 additions and 18 deletions
|
@ -142,14 +142,14 @@ paths:
|
|||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
/contests/{id}/tasks:
|
||||
/contests/tasks:
|
||||
post:
|
||||
operationId: AddTask
|
||||
security:
|
||||
- bearerAuth: [ ]
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
- name: contest_id
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
|
@ -172,12 +172,6 @@ paths:
|
|||
security:
|
||||
- bearerAuth: [ ]
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
- name: task_id
|
||||
in: query
|
||||
required: true
|
||||
|
@ -187,14 +181,44 @@ paths:
|
|||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
/contests/{id}/participants:
|
||||
/contests/participants:
|
||||
get:
|
||||
operationId: ListParticipants
|
||||
security:
|
||||
- bearerAuth: [ ]
|
||||
parameters:
|
||||
- name: contest_id
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
- name: page
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
- name: pageSize
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ListParticipantsResponse'
|
||||
post:
|
||||
operationId: AddParticipant
|
||||
security:
|
||||
- bearerAuth: [ ]
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
- name: contest_id
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
|
@ -217,12 +241,6 @@ paths:
|
|||
security:
|
||||
- bearerAuth: [ ]
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
- name: participant_id
|
||||
in: query
|
||||
required: true
|
||||
|
@ -516,6 +534,46 @@ components:
|
|||
id:
|
||||
type: integer
|
||||
format: int32
|
||||
ParticipantsListItem:
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- name
|
||||
- user_id
|
||||
- created_at
|
||||
- updated_at
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
format: int32
|
||||
name:
|
||||
type: string
|
||||
user_id:
|
||||
type: integer
|
||||
format: int32
|
||||
created_at:
|
||||
type: string
|
||||
format: date-time
|
||||
updated_at:
|
||||
type: string
|
||||
format: date-time
|
||||
ListParticipantsResponse:
|
||||
type: object
|
||||
required:
|
||||
- participants
|
||||
- page
|
||||
- max_page
|
||||
properties:
|
||||
participants:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/ParticipantsListItem'
|
||||
page:
|
||||
type: integer
|
||||
format: int32
|
||||
max_page:
|
||||
type: integer
|
||||
format: int32
|
||||
securitySchemes:
|
||||
bearerAuth:
|
||||
type: http
|
||||
|
|
Loading…
Add table
Reference in a new issue