请求 | GET /contest/list |
---|---|
参数 | { page?: number } |
响应主体 | application/json (DataResponse<{ contests: List<Contest> }> ) |
请求 | GET /api/user/joinedContests |
---|---|
参数 | { page?: number } |
响应主体 | application/json ({ contests: List<Contest> } ) |
请求 | GET /api/user/createdContests |
---|---|
参数 | { page?: number } |
响应主体 | application/json ({ contests: List<Contest> } ) |
请求 | GET /contest/:id |
---|---|
响应主体 | application/json (DataResponse<ContestData> ) |
请求 | GET /contest/edit/:id |
---|---|
响应主体 | application/json (DataResponse<CreatedContestData> ) |
请求 | GET /fe/api/contest/scoreboard/:id |
---|---|
参数 | { page?: number } |
响应主体 | application/json (GetScoreboardResponse ) |
请求 | POST /fe/api/contest/join/:id |
---|---|
请求主体 | application/json ({ code?: string } ) |
响应主体 | application/json ({ id: number } ) |
请求 | POST /fe/api/contest/new |
---|---|
请求主体 | application/json (EditContestRequest ) |
响应主体 | application/json ({ id: number } ) |
请求 | POST /fe/api/contest/edit/:id |
---|---|
请求主体 | application/json (EditContestRequest ) |
响应主体 | application/json ({ id: number } ) |
请求 | POST /fe/api/contest/editProblem/:id |
---|---|
请求主体 | application/json ({ pids: string[]; scores: { [pid: string]: number } } ) |
响应主体 | application/json ({} ) |
请求 | POST /fe/api/contest/delete/:id |
---|---|
响应主体 | application/json ({} ) |