API request: Course JSON with participants and their exercise status
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Start by reading the existing /:instanceId/courses/:courseId/points.json, exercise_status/:studentId.json, and /:instanceId/participants.json API entry points. Trace how each supplies course participants, student information, and exercise status. Done means /:instanceId/courses/:courseId/participants.json returns the course id and each participant with the proposed information and exercise-status fields in one response.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
There's a need for better API in TMC Server for resolving which students have been in a specific course and what is their exercise status. Now to get students of a specific course from TMC you need to navigate to
/:instanceId/courses/:courseId/points.json
and get student IDs from "users" attribute.
On the other hand, you can get exercise status from
/:instanceId/courses/:courseId/exercise_status/:studentId.json
Finally, for complete student information you need to get them from
/:instanceId/participants.json.
To solve all of this with just one request, we suggest the following path:
/:instanceId/courses/:courseId/participants.json
which returns something like this:
{ "id": "courseId", "participants":
[
{ "id": "1", "username": "name", "first_name": "first", "last_name": "last",
"exercise_status": [
{ "exercise1": "status" }, { "exercise2": "status" }
]
}
]
}
This way we can easily find out which students are in the course, their information and which exercises they have been working on.
- Ngôn ngữ chính
- Ruby
- Star
- 51
- Fork
- 42
- Merge trung bình
- 1 giờ 27 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của testmycode/tmc-server
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
testmycode/tmc-server#590 ·
-
Exercise Submission Failed Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
testmycode/tmc-server#576 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
testmycode/tmc-server#488 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
testmycode/tmc-server#487 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
testmycode/tmc-server#477 · 2 bình luận ·
Tất cả issue của testmycode/tmc-server
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
hanami/hanami-cli#449 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
resque/resque-scheduler#826 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100