Get Exercise Counts By Category Path
Return { "Grade / Chapter / Thematic": count } for every distinct category_path in the library (Legacy included). The key format is segments.join(" / ") so the caller can build both chapter-level and thematic-level badges in one round-trip:
counts["Terminale / Probabilités"] // chapter-level counts["Terminale / Probabilités / Loi binomiale"] // thematic-level
Chapter-level counts are rolled up by the caller from the thematic entries (or read directly when an exercise is stored at chapter depth).
Query parameters
Scope counts to a matière (see list endpoint).
Scope counts to a matière (see list endpoint).
Restrict the counts to these exercise types. Repeat the param for each value. 'exercice' also covers 'application_du_cours' and rows written before the type field existed, matching what the picker grid shows. Omit (or pass every type) for no scoping.
Restrict the counts to these exercise types. Repeat the param for each value. 'exercice' also covers 'application_du_cours' and rows written before the type field existed, matching what the picker grid shows. Omit (or pass every type) for no scoping.
Restrict the counts to these origins (excellence, saint_jean_hulst, lacordaire). Repeat the param for each value.
Restrict the counts to these origins (excellence, saint_jean_hulst, lacordaire). Repeat the param for each value.
Restrict the counts to these difficulties.
Restrict the counts to these difficulties.
Restrict the counts to exercises tagged with at least one of these savoir-faire ids.
Restrict the counts to exercises tagged with at least one of these savoir-faire ids.
Response
Successful Response