Schneider Electric interview question

Need to build an API in Python based on given JSON data