Create a JSON file with some identities, in the format expected by SortingHat. Load it to create a SortingHat MySQL database. Create a very simple Flask or Django application providing a REST interfate. This very simple REST interface will provide a single resource, /list, which when accessed through HTTP GET will produce a JSON file, in SortingHat format, from the information in the database.
It can be tested as follows:
curl -X GET http://server/list
This should return the mentioned JSON file. The format of that JSON file is that used for the "load" and "export" command options for sortinghat, see section "Import/Export", at the end of README.md.
As a result of this task, provide the link to a git repository with:
- A MySQL SortingHat database dump
- The JSON file, in SortingHat format, used to create it
- All the Python source code of the application
- A README.md file with clear and detailed instructions to deploy the application, including any configuration information needed.