I've created an API for this sample