WalrusCLI: Add createAPIController method
Walrus sample: refactor