Write basic consumer side of api