An example of a rest interface using flask