Implement the API with a in memory repository