# Result - 考试结果 > url 前缀:**result** > > 示例:**https://xxxxxxxxx/api/result/xxxx** ## 根据resultId查询考试结果 ```http get /result/{resultId:\d+} ``` ### PathVariable - resultId: **number**,考试结果编号 ### Response ```json { "res": ResultSerializer, } ``` see [ResultSerializer](./ResultSerializer.md) ## 根据用户查询考试结果 ```http get /result 或 get /user/{userId:\d+}/result ``` ### PathVariable - userId: **number**,用户编号 ### Response ```json { "res": Array, } ``` see [ResultSerializer](./ResultSerializer.md) ## 根据考试查询所有考试结果 ```http get /exam/{examId:\d+}/result ``` ### PathVariable - examId: **number**,考试编号 ### Response ```json { "res": Array, } ``` see [ResultSerializer](./ResultSerializer.md) ## 更新考试信息 [TEACHER] ```http put /exam/{examId:\d+} ``` ### Parameters ```json { "name": string, "startAt": timestamp, "endAt": timestamp, "problems": Array, } ``` see [ProblemSerializer](../../problem/serializer/ProblemSerializer.md) ## 删除考试 [TEACHER] ```http delete /exam/{examId:\d+} ``` ### PathVariable - examId: **number**,考试编号 ## 参加考试 ```http post /exam/{examId:\d+}/join ``` ### PathVariable - examId: **number**,考试编号