User Tools

Site Tools


api2:gameplay:mastery_compared_to_population

**This is an old revision of the document!** ----

A PCRE internal error occured. This might be caused by a faulty plugin

This route is used in order to get the ranking of one student compared to the whole or a sub-part of the population based on the mastery. This mastery can be on all the knowledge_nodes or a subset of the knowledge nodes. You get a JSON response, where parameter "percent" contains the answer. It represent the percentage of users who have a better mastery than the main user. In other word, it represents the top XX% the main user is in. ===Fetch (POST)=== ^ Method | POST | ^ URL | /gameplay_utils/mastery_compared_to_population | ==Parameters (*Required parameters)== ^ Property ^ Type ^ Description ^ | student_id or uid | Integer or String | The identifier of the student you want to get the ranking for. | | student_ids or uids | Array of Integer or String | The identifiers of the students you want to compare the first with. | | knowledge_node_ids | array of integers | The id of the concepts you want to have the comparison for. | ==Get the response (JSON output example)== <code> {"percent": 0.8} </code>

api2/gameplay/mastery_compared_to_population.1558432013.txt.gz · Last modified: 2019/05/21 11:46 by maries