请求 | GET /training/list |
---|---|
参数 | ProblemSetListParams |
响应主体 | application/json (DataResponse<ProblemSetListData> ) |
请求 | GET /api/user/createdTrainings |
---|---|
参数 | { page?: number } |
响应主体 | application/json ({ trainings: List<ProblemSet> } ) |
请求 | GET /api/team/trainings/:id |
---|---|
参数 | { page?: number } |
响应主体 | application/json ({ trainings: List<ProblemSet> } ) |
请求 | GET /training/:id |
---|---|
响应主体 | application/json (DataResponse<ProblemSetData> ) |
请求 | GET /api/user/markedTrainings |
---|---|
参数 | { page?: number } |
响应主体 | application/json ({ trainingParticipations: List<{ training: ProblemSet; user: UserSummary }> } ) |
请求 | POST /api/training/mark/:id |
---|---|
响应主体 | application/json ({} ) |
请求 | POST /api/training/unmark/:id |
---|---|
响应主体 | application/json ({} ) |
请求 | POST /api/training/new |
---|---|
请求主体 | application/json ({ settings: ProblemSetSettings; providerID: number | null } ) |
响应主体 | application/json ({ id: number } ) |
请求 | POST /api/training/edit/:id |
---|---|
请求主体 | application/json ({ settings: ProblemSetSettings } ) |
响应主体 | application/json ({ id: number } ) |
请求 | POST /api/training/addProblem/:id |
---|---|
请求主体 | application/json ({ pids: string[] } ) |
响应主体 | application/json ({ addedProblems: string[] } ) |
请求 | POST /api/training/editProblems/:id |
---|---|
请求主体 | application/json ({ pids: string[] } ) |
响应主体 | application/json ({} ) |
请求 | POST /api/training/clone/:id |
---|---|
请求主体 | application/json ({ type: number; providerID: number | null } ) |
响应主体 | application/json ({} ) |
请求 | POST /api/training/delete/:id |
---|---|
响应主体 | application/json ({} ) |