API request: Course JSON with participants and their exercise status
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Ruby
- Stelle
- 51
- Fork
- 42
- Merge medio
- 1h 27m
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di testmycode/tmc-server
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
testmycode/tmc-server#590 ·
-
Exercise Submission Failed Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
testmycode/tmc-server#576 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
testmycode/tmc-server#488 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
testmycode/tmc-server#487 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
testmycode/tmc-server#477 · 2 commenti ·
Tutte le issue di testmycode/tmc-server
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
hanami/hanami-cli#449 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
resque/resque-scheduler#826 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100