请求 | GET /team/:id |
---|---|
响应主体 | application/json (DataResponse<TeamData> ) |
请求 | GET /api/team/members/:id |
---|---|
响应主体 | application/json ({ members: TeamMember[] } ) |
请求 | GET /api/team/problems/:id |
---|---|
参数 | { page: number } |
响应主体 | application/json ({ problems: List<Problem> } ) |
请求 | GET /api/team/trainings/:id |
---|---|
参数 | { page: number } |
响应主体 | application/json ({ trainings: List<ProblemSet> } ) |
请求 | GET /api/team/contests/:id |
---|---|
参数 | { page: number } |
响应主体 | application/json ({ contests: List<Contest> } ) |
请求 | POST /api/team/join/:id |
---|---|
请求主体 | application/json ({ applyMessage?: string } ) |
响应主体 | application/json ({} ) |
请求 | POST /api/team/exit/:id |
---|---|
响应主体 | application/json ({} ) |
请求 | POST /api/team/create |
---|---|
请求主体 | application/json ({ name: string } ) |
响应主体 | application/json ({ teamId: number } ) |
请求 | POST /api/team/edit/:id |
---|---|
请求主体 | application/json ({ settings: { description: string; joinPermission: number } } ) |
响应主体 | application/json ({} ) |
请求 | POST /api/team/setMaster/:id |
---|---|
请求主体 | application/json ({ uid: number } ) |
响应主体 | application/json ({} ) |
请求 | POST /api/team/editNotice/:id |
---|---|
请求主体 | application/json ({ notice: string } ) |
响应主体 | application/json ({} ) |
请求 | POST /api/team/editMember/:id |
---|---|
请求主体 | application/json (ManageTeamMemberRequest ) |
响应主体 | application/json (TeamMember ) |
请求 | POST /api/team/review/:id |
---|---|
请求主体 | application/json ({ uid: number; reviewResult: "apply" | "refuse" | "ban" } ) |
响应主体 | application/json ({} ) |
请求 | POST /api/team/kick/:id |
---|---|
请求主体 | application/json ({ uid: number } ) |
响应主体 | application/json ({} ) |