""" These are the client intermediary views for accessing data in the
backend. """
import json
# Using this to sketch out JSON formats
morfa_s_example = {
'exercise_type': 'morfa_s',
'question': {
'format': 'text',
'text': 'juhkat',
},
'answer': {
'format': 'text',
'input': [
'mun',
'',
],
'help_text': [
{'help_level': 1, 'text': 'This should be the first person form.'},
{'help_level': 2, 'text': 'See the grammar? Verbs'},
]
},
# This will be optional, depending on whether an answer has been
# submitted
# 'user_input': {
# 'text': 'juhkan',
# 'feedback': "Don't forget consonant gradation",
# }
}
def get_exercise():
" Request an exercise, return a python dictionary "
return morfa_s_example