Skip to content

Commit 367c23e

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 5f16ede commit 367c23e

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

webapp/src/Controller/API/AccessController.php

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,13 @@ 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',
109+
'banner',
106110
],
107111
),
108112
new AccessEndpoint(
@@ -122,9 +126,8 @@ public function getStatusAction(Request $request): Access
122126
'entry_point_required',
123127
'entry_point_name',
124128
'extensions',
125-
// TODO: we don't support these yet
126-
// 'compiler.command',
127-
// 'runner.command',
129+
'compiler',
130+
'runner',
128131
],
129132
),
130133
new AccessEndpoint(
@@ -160,9 +163,24 @@ public function getStatusAction(Request $request): Access
160163
'id',
161164
'icpc_id',
162165
'name',
166+
'label',
163167
'display_name',
164168
'organization_id',
165169
'group_ids',
170+
'hidden',
171+
'location',
172+
'photo',
173+
]
174+
),
175+
new AccessEndpoint(
176+
type: 'accounts',
177+
properties: [
178+
'id',
179+
'username',
180+
'name',
181+
'type',
182+
'ip',
183+
'team_id',
166184
]
167185
),
168186
new AccessEndpoint(
@@ -205,6 +223,19 @@ public function getStatusAction(Request $request): Access
205223
'run_time',
206224
],
207225
),
226+
new AccessEndpoint(
227+
type: 'clarifications',
228+
properties: [
229+
'id',
230+
'from_team_id',
231+
'to_team_id',
232+
'reply_to_id',
233+
'problem_id',
234+
'text',
235+
'time',
236+
'contest_time',
237+
],
238+
),
208239
new AccessEndpoint(
209240
type: 'awards',
210241
properties: [

0 commit comments

Comments
 (0)