brendanheywood / theCrag-DEFUNCT

!!!!! PLEASE USE THIS ISSUES LIST INSTEAD: https://github.com/theCrag/website/issues
thecrag.com
0 stars 0 forks source link

Need an api export of all the grade contexts, grade systems and their levels as json #157

Open brendanheywood opened 13 years ago

brendanheywood commented 13 years ago

Needed for a client to convert grades and filter them etc

scd commented 13 years ago

I've started this work (in repo). See url (returns json):

http://27.32.153.207:8080/config/grades

There is a lot of grade configuration stuff that I have not exposed because it is all to do with parsing the grades. Hopefully I have enough for your purposes. The information all comes from the following two files: Application/GradeDefinitions.pm Application/GradeScore.pm

json format is { defaultContext: //id defaultSystem: //id bandSystem: //id contexts: { id: name: label: description: systemOrder: [] // which systems take priority when dispaying grades in a certain context } systems: { id: name: label: abbr: displayable: grades: [ { id: label: score: // convert to internal score low: // the lower limit of the internal score range high: // the higher limit of the internal score range }, ] }