Skip to content

Commit d5fbd51

Browse files
committed
Add all Contest API endpoints and properties we support to access endpoint
Include also the endpoints accounts and clarifications that were missing.
1 parent 6be1166 commit d5fbd51

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

webapp/src/Controller/API/AccessController.php

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,11 @@ public function getStatusAction(Request $request): Access
100100
'name',
101101
'formal_name',
102102
'start_time',
103+
'countdown_pause_time',
103104
'duration',
104105
'scoreboard_freeze_duration',
106+
'scoreboard_thaw_time',
107+
'scoreboard_type',
105108
'penalty_time',
106109
],
107110
),
@@ -122,9 +125,8 @@ public function getStatusAction(Request $request): Access
122125
'entry_point_required',
123126
'entry_point_name',
124127
'extensions',
125-
// TODO: we don't support these yet
126-
// 'compiler.command',
127-
// 'runner.command',
128+
'compiler',
129+
'runner',
128130
],
129131
),
130132
new AccessEndpoint(
@@ -160,9 +162,24 @@ public function getStatusAction(Request $request): Access
160162
'id',
161163
'icpc_id',
162164
'name',
165+
'label',
163166
'display_name',
164167
'organization_id',
165168
'group_ids',
169+
'hidden',
170+
'location',
171+
'photo',
172+
]
173+
),
174+
new AccessEndpoint(
175+
type: 'accounts',
176+
properties: [
177+
'id',
178+
'username',
179+
'name',
180+
'type',
181+
'ip',
182+
'team_id',
166183
]
167184
),
168185
new AccessEndpoint(
@@ -205,6 +222,19 @@ public function getStatusAction(Request $request): Access
205222
'run_time',
206223
],
207224
),
225+
new AccessEndpoint(
226+
type: 'clarifications',
227+
properties: [
228+
'id',
229+
'from_team_id',
230+
'to_team_id',
231+
'reply_to_id',
232+
'problem_id',
233+
'text',
234+
'time',
235+
'contest_time',
236+
],
237+
),
208238
new AccessEndpoint(
209239
type: 'awards',
210240
properties: [

0 commit comments

Comments
 (0)