hpi-schul-cloud / gamification

A reusable microservice for gamification.
GNU Affero General Public License v3.0
45 stars 18 forks source link

Achievement meta information #53

Open frederike-ramin opened 6 years ago

frederike-ramin commented 6 years ago

Achievements should have meta information like name that can be used in the frontend.

cmfcmf commented 6 years ago

The idea here is to introduce a new meta: key in the achievement configuration which can contain any kind of information, depending on the use case. You could, for example, set meta: {title: 'blah', desc: 'queue', color: "#974562"} for one achievement and use these values in the frontend. The achievement's meta-data should also be included in the /user/<user id> responses for all granted achievements.