Schneider Electric Interview Question

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